From bd4f48ca1a8afe903941f1ab94bb517aa1288c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 4 Jan 2014 17:33:20 +0100 Subject: [PATCH] Fix bounds check for mousemove events. Closes #369 --- src/ui/View.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/View.js b/src/ui/View.js index ac48a49d..c93f2d1e 100644 --- a/src/ui/View.js +++ b/src/ui/View.js @@ -706,8 +706,7 @@ var View = Base.extend(Callback, /** @lends View# */{ } if (view) { var point = viewToProject(view, event); - if (dragging || new Rectangle(new Point(), - view.getViewSize()).contains(point)) + if (dragging || view.getBounds().contains(point)) tool = handleMouseMove(view, point, event); } }