Welcome!

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

Reply
Contributor
Decoding
Posts: 13
Registered: ‎12-13-2012
My Device: Curve 8520
My Carrier: Idea

Packaging problem, touch not working on Dev Alpha

When we package our apps for the dev alpha, the touch is not working for any of the apps. It was working last time when we submitted our previous apps 2 weeks back. Any ideas?
Please use plain text.
BlackBerry Development Advisor (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
My Carrier: Virgin

Re: Packaging problem, touch not working on Dev Alpha

What does "touch is not working" mean? The screen is frozen? Are there any errors from Web Inspector?

@erikjohnzon
erjohnson@blackberry.com
Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Device: 9800
My Carrier: Rogers

Re: Packaging problem, touch not working on Dev Alpha

What version of the OS are you using?

What version of WebWorks SDK are you using?

Please use latest WebWorks SDK with latest OS update and you should be fine.
@nukulb
Please use plain text.
Developer
mamdohreda
Posts: 73
Registered: ‎10-31-2011
My Device: Q10
My Carrier: etisalat

Re: Packaging problem, touch not working on Dev Alpha

try to update your device for latest version

https://developer.blackberry.com/blackberry10devalphas/update/

 

and try to use latest update of Gold SDK

 

Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Packaging problem, touch not working on Dev Alpha

Some scraps of code from something I'm working on

Note that I've cut this down a lot - starting in touchpoint lets me know when I start the touch event which I flag

World perfectly on gold + 1675

function dosomething(tp)
    {
    alert(tp.x + ' x ' + tp.y);
    }

function touchpoint(event, starting)
    {
    var first = event.changedTouches[0];
    return { 'x': first.clientX, 'y': first.clientY};
    }

document.addEventListener('touchmove', function(e) {
    e.preventDefault();
    var tp = touchpoint(e, true);
    dosomething(tp);
    return false;
    }, false);

document.addEventListener('touchstart', function(e) {
    var tp = touchpoint(e, false);
    dosomething(tp);
    return false;
    }, false);

document.addEventListener('touchend', function(e) {
    var tp = touchpoint(e, false);
    dosomething(tp);
    return false;
    }, false);




Click the like button if you find my posts useful!
Please use plain text.