Fixes issue where panning occurs upon mouse scroll at max/min zoom
This commit is contained in:
parent
c0e966a08c
commit
d8418f7bb2
1 changed files with 2 additions and 1 deletions
|
@ -165,7 +165,8 @@ module.exports = class Camera extends CocoClass
|
||||||
target = {x: newTargetX, y:newTargetY}
|
target = {x: newTargetX, y:newTargetY}
|
||||||
else
|
else
|
||||||
target = @target
|
target = @target
|
||||||
@zoomTo target, newZoom, 0
|
if not(newZoom >= MAX_ZOOM or newZoom <= Math.max(@minZoom, MIN_ZOOM))
|
||||||
|
@zoomTo target, newZoom, 0
|
||||||
|
|
||||||
onMouseDown: (e) ->
|
onMouseDown: (e) ->
|
||||||
return if @dragDisabled
|
return if @dragDisabled
|
||||||
|
|
Reference in a new issue