Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter Sign In with OpenID Sign In with Google

Sign In Sign Up

In this Discussion

Tagged

Welcome to the Jo support forums! Please Sign Up and join in the discussion. You can also Sign In instantly with Twitter, OpenID or your Google ID.
Suggestions to Jo Event handling for joControl
  • dragondragon February 2012
    Posts: 10

    Dave,


    While improving our mobile app performance, we realized that 'click' event has low priority and executs slower when running in Iphone/Andoird devices. Currently Jo use 'click' for JoControl, JoInput and other elements. It makes the app running slow and sometime not responding - device not always triggers click event. We change the code to use 'mouseup' and also set to use 'capture' rather than bubbling. Now the app runs way much faster.

    What do you think? Is our change making sense? We will release our code soon so people can look at changes made.

    Thanks,

    Dragon Ji
    www.ifortzone.com
    www.ifuzhen.com
  • davedave February 2012
    Posts: 415

    Definitely interested. I'm looking at revamping the event layer in general due to things like this.

    Dave Balmer, Jo Code Wrangler
  • dragondragon February 2012
    Posts: 10

    Thanks Dave. We have released our site. You are welcome to check it out: 


    Or access http://www.ifortzone.com on your smart devices.
    www.ifortzone.com
    www.ifuzhen.com
  • jpsheridanjpsheridan June 2012
    Posts: 35

    Hi,


    Did this code ever get released? I put some log code in joEvent.capture and joEvent.on and noticed that it's all mouse related events, click, move etc etc.

    Thanks,
    JP
  • davedave June 2012
    Posts: 415

    Jo uses touch* events if it detects support for them on device. Its basic unit of currency, however, is mouse*. This has a lot to do with the state of mobile at the time of Jo's initial release (2yrs ago). This looks like a good year to reverse that formula. :) For now, when setting up events through Jo, you can use mouse* events for greatest compatibility, and it'll sort it out (check out the code in joEvent). Hope this helps.

    Dave Balmer, Jo Code Wrangler