if (event.doubleClick && event.rightClick) not working as expected
-
Flagging this as an issue because
if(event.drag && event.rightClick)
works as expected (only executes when control is dragged with right click.event.rightClick
isbool
and returns1
if right click is down. So why doesn't it work with double click?event.rightClick
will return0
from inside theif (event.doubleClick)
(obvioulsly).The workaround is to surround
if (event.doubleClick)
withif (event.rightClick) { this.data.rightClick = true; }
above and
if (!event.rightClick) { this.data.rightClick = false; }
below.
commit
3235dac - - bump version to 3.6.0