PDA

View Full Version : Getting 1.1.0 to Work with BlackBerry OS6 Non-touch Devices



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

mitchellsimoens
1 Apr 2011, 6:21 PM
1.1.0 was the release that started Blackberry 6 support. Right now, the Torch is the only one I believe. Remember, it is Sencha Touch

hitman01
4 Apr 2011, 10:38 AM
Very nice, thanks for the info.

Though it runs really slow. I think its why Sencha hasnt included support for these devices.

dipspb
7 Apr 2011, 3:24 AM
1.1.0 was the release that started Blackberry 6 support. Right now, the Torch is the only one I believe. Remember, it is Sencha Touch

No, Bold 9780 have OS6 too. And it isn't touch phone.

rgporter
8 May 2011, 2:15 PM
Thanks for the fix! Much welcomed as even touch BBs have trackpad.