webix.Touch.limit causes onItemDblClick not to fire in pie chart

Hi,
I am using pie chart. some time ago you recommended to use
webix.Touch.limit, see thread (http://forum.webix.com/discussion/1987/adding-webix-js-to-page-stops-scrolling-on-ipad-air#latest)
When I am using pie chart and webix.Touch.limit onItemDblClick is not fired on iPad air, see snipet: http://webix.com/snippet/acb5389f

Please advise.

Hi,

Fast double tap on touch devices causes zooming. And mobile browsers do not fire “click” event in this case. So, it’s impossible to call ondblclick handler. onLongTouch could be used as a possible solution, but in case of Touch limit this event is not fired.

I’m afraid that there is not solution for double-click handler on Touch devices.

Hi Maria,
Per Maksim’s suggestion I use timer to differentiate between onItemClick and onItemDblClick (http://forum.webix.com/discussion/3852/onitemclick-is-raised-before-onitemdblclick-is-raised#latest),
waiting period is 300 miliseconds. It is not fast enough for zooming.
When I double click in iPad normally (i.e. not very fast) zoom does not occur which proves that it is not fast enough for zooming.
If you run my snippet:http://webix.com/snippet/acb5389f
without webix.Touch.limit(true) in iPad you will see that double click is working nicely.

I think there is a bug in the code when webix.Touch.limit(true) is called.
I would like to get Maksim’s opinion on the issue.

Thank you.

Hi,

Maksim suggested to apply delays in order to skip onItemClick handler. However, his solution was not related Touch devices.

Webix library contains special touchstart event handling for Safari browser that does not applied in case of “limited” mode (it was made to solve different issue in Safari). On Android devices you will get the same behaviour with or without “limited” mode.

Maria,
based on Maksim’s response:" webix.Touch.limit(true); it will allow native touch handling for custom html and will use webix touch handling inside of webix components." (from http://forum.webix.com/discussion/1987/adding-webix-js-to-page-stops-scrolling-on-ipad-air#latest)
onItemDblClick should work inside pie chart when webix.Touch.limit(true) is set.
Please revisit.

Hi,

Sorry, but it is impossible to fire onDblClick event on Touch devices in “limited” mode. As I already wrote library blocks native event handling for Safari that can not applied in case of limited mode.