File tree Expand file tree Collapse file tree 2 files changed +22
-28
lines changed Expand file tree Collapse file tree 2 files changed +22
-28
lines changed Original file line number Diff line number Diff line change 1
1
const LAppDefine = {
2
- DEBUG_MOUSE_LOG : false ,
3
- // DEBUG_DRAW_HIT_AREA : false,
4
- // DEBUG_DRAW_ALPHA_MODEL : false,
5
-
6
2
VIEW_MAX_SCALE : 2 ,
7
3
VIEW_MIN_SCALE : 0.8 ,
8
4
Original file line number Diff line number Diff line change @@ -174,18 +174,17 @@ class Model {
174
174
const vx = this . transformViewX ( event . clientX - rect . left ) ;
175
175
const vy = this . transformViewY ( event . clientY - rect . top ) ;
176
176
177
- if ( LAppDefine . DEBUG_MOUSE_LOG )
178
- logger . trace (
179
- 'onMouseDown device( x:' +
180
- event . clientX +
181
- ' y:' +
182
- event . clientY +
183
- ' ) view( x:' +
184
- vx +
185
- ' y:' +
186
- vy +
187
- ')' ,
188
- ) ;
177
+ logger . trace (
178
+ 'onMouseDown device( x:' +
179
+ event . clientX +
180
+ ' y:' +
181
+ event . clientY +
182
+ ' ) view( x:' +
183
+ vx +
184
+ ' y:' +
185
+ vy +
186
+ ')' ,
187
+ ) ;
189
188
190
189
this . lastMouseX = sx ;
191
190
this . lastMouseY = sy ;
@@ -203,18 +202,17 @@ class Model {
203
202
const vx = this . transformViewX ( event . clientX - rect . left ) ;
204
203
const vy = this . transformViewY ( event . clientY - rect . top ) ;
205
204
206
- if ( LAppDefine . DEBUG_MOUSE_LOG )
207
- logger . trace (
208
- 'onMouseMove device( x:' +
209
- event . clientX +
210
- ' y:' +
211
- event . clientY +
212
- ' ) view( x:' +
213
- vx +
214
- ' y:' +
215
- vy +
216
- ')' ,
217
- ) ;
205
+ logger . trace (
206
+ 'onMouseMove device( x:' +
207
+ event . clientX +
208
+ ' y:' +
209
+ event . clientY +
210
+ ' ) view( x:' +
211
+ vx +
212
+ ' y:' +
213
+ vy +
214
+ ')' ,
215
+ ) ;
218
216
219
217
if ( this . drag ) {
220
218
this . lastMouseX = sx ;
You can’t perform that action at this time.
0 commit comments