Fix bounds check for mousemove events.

Closes #369
This commit is contained in:
Jürg Lehni 2014-01-04 17:33:20 +01:00
parent e22fa3a664
commit bd4f48ca1a

View file

@ -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);
}
}