-
4 Nov 2011 1:24 PM #1
Supporting Blackberry Webworks trackball/mouse
Supporting Blackberry Webworks trackball/mouse
In trying to get TabBar buttons working with a blackberry trackball/mouse in a webworks packaged application, I've discovered that Blackberry supports an x-blackberry-focusable="true" (or false) attribute on elements which enables them to be focusable by scrolling the trackball. This doesn't actually make it work, though. It also needs to support a 'click' event which I have faked by creating my own Ext.Button subclass and adding a click handler since the Ext.Button init method only tacks on tap events. This only works on buttons that I specifically create with my own xtype, I'm not sure how to get it to work with the automatically generated back button in a NestedList (for instance). Which also brings up the point that items in a list/nested list are not clickable either.
Are there any quick work-arounds that would enable both tap and click events to be registered everywhere? Is this something that could make it into the next release?
-
17 Nov 2011 9:44 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Problem is we don't support non-touch blackberry devices.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
17 Nov 2011 10:43 AM #3
I realize that
What I am suggesting is that it is theoretically it shouldn't be too hard to support non-touch events since the framework does already support them for browsers and, if you add a handler for click as well as touch it will actually work. What I could not discover (and I wasn't sure if I should be hacking around in the core) is how to generically enable routing touch and click events to the same handlers when running on a mobile device. I believe this is worth doing as all blackberry phones seem to include the trackball and users seem trained to use it.
Cheers
Paul
-
18 Nov 2011 7:58 AM #4
Sorry for self-plug but see my blogpost. This was for ST1.1, I haven't tried it on ST2
http://resilientcoder.blogspot.com/2...rk-on-non.html
-
18 Nov 2011 8:18 AM #5
Interesting ... hopefully I can get to try this out shortly and report back here. It would be great if Sencha would add this to the main code base!
-
18 Nov 2011 8:20 AM #6
Yup, if you see my other post I show how to set up a listener on scrolling with the ball since you can't touch and scroll on some BB OS6 devices. (make sure to check comments, some have their own implementations that may/may not be better)
-
21 Mar 2012 6:13 AM #7
Hi, I'm trying to start working with st2 for blackberry. I'm using a bold 9780 with os6 I have not tested yet your proposal to scrolling using the trackball but I want to incorporate it to my application. Before it, I have an issue I need to solve:
I have an application that works (more o less) in the emulator but in a phisical device doesn't render anything.
Doing some testing I've discovered that the sencha-touch-all-debug.js is not fully loaded. Seems stop loading at any moment and only what I get is a blank screen.
Since this only occur in the phisical device I have not so much alternatives to inspect where the problem is.
Here you have the details of the device:
Blackberry 9780 (3G, Wifi)
6.0 Bundle 2391 (v6.0.0.534, , platform 6.6.0.200)
I ve tested the st2-pr3 and the st2-gpl final release with same results
This is the application I'm testing:
Please, could you tell me what devices have you tested, and if you know how can I debuggin from a phisical device?HTML Code:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script type="text/javascript" src="sencha-touch-all-debug.js"></script> </head> <body> <script type="text/javascript"> Ext.setup({ onReady: function() { alert('start'); } }); </script> </body> </html>
-
30 Mar 2012 10:01 AM #8
FidoX, sencha-touch-all-debug.js is pretty big, try the non-debug version sencha-touch-all.js
Also, I've found Sencha Touch 2 too slow for BB6 so I've had to bump the min requirements to BB7....


Reply With Quote