Skip to content

Commit a09e7cb

Browse files
Fix scale
1 parent b000f77 commit a09e7cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cubism2/LAppDefine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const LAppDefine = {
2-
VIEW_MAX_SCALE: 2,
3-
VIEW_MIN_SCALE: 0.8,
2+
VIEW_MAX_SCALE: 1.5,
3+
VIEW_MIN_SCALE: 1,
44

55
VIEW_LOGICAL_LEFT: -1,
66
VIEW_LOGICAL_RIGHT: 1,

src/cubism2/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class Cubism2Model {
279279

280280
if (e.type == 'mousewheel') {
281281
if (e.wheelDelta > 0) this.modelScaling(1.1);
282-
else this.modelScaling(1);
282+
else this.modelScaling(0.9);
283283
} else if (e.type == 'click' || e.type == 'contextmenu') {
284284
this.modelTurnHead(e);
285285
} else if (e.type == 'mousemove') {

0 commit comments

Comments
 (0)