Since BlackBerry 10 OS version 10.1, DOM elements no longer trigger their CSS :active pseudo class when touched, unless a 'touchend' event is attached. These no longer trigger when using 'click' events. This was done for performance reasons.
For example, If you are using CSS :acive pseudo class to highlight menu items for example, they will need to change the listeners from:
//from someDiv.addEventListener(‘click’,function,false); //to someDiv.addEventListener(‘touchend’,function,false
To keep the code cross-platform (touchend only works on touchscreen devices, not desktop), you can create a little helper function as such:
var clickOrTouch = 'ontouchstart' in window ? ‘touchend’ : ‘click’;
And then use clickOrTouch instead:
This will query the browser to see if touch is supported and use touched instead of click.