Fix issue with click events on items.

Closes #179.
This commit is contained in:
Jürg Lehni 2013-03-05 15:44:22 -08:00
parent 8185cc07e7
commit 52af99de6b

View file

@ -146,8 +146,8 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
clickTime = Date.now();
if (!doubleClick
// callEvent returns false if event is stopped.
|| callEvent('doubleclick', event, downPoint, overItem))
callEvent('click', event, downPoint, overItem);
|| callEvent('doubleclick', event, downPoint, item))
callEvent('click', event, downPoint, item);
doubleClick = false;
}
downItem = null;