soros
31 Mar 2011, 10:46 AM
Hi,
When you use a trackball / trackpad in BlackBerry OS6 Non-touch devices, a JavaScript 'onclick' Event is not firing (onmouseover is OK).
Originally, I thought it is an OS6 issue but after I contacted RIM we found out that's not the case.
http://supportforums.blackberry.com/t5/Web-Development/BUG-OS6-JavaScript-onclick-Event-Not-Firing-when-Using-Trackball/td-p/785237
Thanks to Stan B. who came up with a workaround that involves changing the Sencha Touch source code.
http://resilientcoder.blogspot.com/2011/03/getting-sencha-touch-to-work-on-non.html
The three changes that need to be made in sencha-touch-debug.js:
Line 4763:
Touch: ('ontouchstart' in window) && (!Ext.is.Desktop && !Ext.is.Blackberry),
Line 13964:
if (!Ext.desktop && !Ext.Blackberry) {...}
Line 18217:
if (Ext.is.Desktop || Ext.is.Blackberry) {...}
In my company we have a few hundreds of BlackBerry users and probably 50% of them have OS6 non-touch devices. It would be great if the next release could add support to BlackBerry OS6 Non-touch devices.
Thanks
When you use a trackball / trackpad in BlackBerry OS6 Non-touch devices, a JavaScript 'onclick' Event is not firing (onmouseover is OK).
Originally, I thought it is an OS6 issue but after I contacted RIM we found out that's not the case.
http://supportforums.blackberry.com/t5/Web-Development/BUG-OS6-JavaScript-onclick-Event-Not-Firing-when-Using-Trackball/td-p/785237
Thanks to Stan B. who came up with a workaround that involves changing the Sencha Touch source code.
http://resilientcoder.blogspot.com/2011/03/getting-sencha-touch-to-work-on-non.html
The three changes that need to be made in sencha-touch-debug.js:
Line 4763:
Touch: ('ontouchstart' in window) && (!Ext.is.Desktop && !Ext.is.Blackberry),
Line 13964:
if (!Ext.desktop && !Ext.Blackberry) {...}
Line 18217:
if (Ext.is.Desktop || Ext.is.Blackberry) {...}
In my company we have a few hundreds of BlackBerry users and probably 50% of them have OS6 non-touch devices. It would be great if the next release could add support to BlackBerry OS6 Non-touch devices.
Thanks