Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Regular Contributor
Posts: 55
Registered: ‎12-23-2011
My Device: 9900 / PB 2.0641
My Carrier: SFR

HTML5 Element Touch event - is that a typo ?

[ Edited ]

in HTML5 Element Touch Event documentation page, sample "prevent move" :


preventMove = function(e) {
   window.scroll(0, 0);
   return false;
window.document.addEventListener('touchmove', preventMove, false);

 1st line should be :

preventMove = function(evt) {

 Moreover, for examples consistency, maybe a choice between "evt" or "event" could be used to ease understanding and noobs (I)  copy/paste adaptation Smiley Wink


Or maybe I missed something ?

Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: HTML5 Element Touch event - is that a typo ?

Hi superfly_fr,


you are really right with all your thoughts, even the "evt" attribute for event parameters is a good point for consistency and readability of source code. One point, I think you are referring to this URL, isn't it: https://developer.blackberry.com/html5/api/Element.html

"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Regular Contributor
Posts: 55
Registered: ‎12-23-2011
My Device: 9900 / PB 2.0641
My Carrier: SFR

Re: HTML5 Element Touch event - is that a typo ?

Yes !

And thanks for the link, edited.