1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    14
    Vote Rating
    0
    rayman1900 is on a distinguished road

      0  

    Default Unanswered: Touch "trail" in Sencha? Peformance issue ?

    Unanswered: Touch "trail" in Sencha? Peformance issue ?


    Hi,

    I'm trying to implement in my sencha Touch App a cursor trail like demonstrated from that page: http://javascriptkit.com/script/scri...sortrail.shtml

    It's a javascript code, but it's using the image() object to operate. Is it possible to recreate somehow this example only using panels instead of the image() object ? Will it create performance issues ?

    thank you
    Ray

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Answers
    148
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Hi rayman.
    Why you want to implement something like that when on mobile devices you don't have a pointer?
    Do you maybe want to achieve the same effect when the user drag his finger on the screen?
    However, about performances, it depends on where you are planning to let the users "play" with you app.
    On a desktop browser I don't thing you will notice any performances issues, but on mobile devices I think you will.

    Sometimes graphic and "special effects" has to be left aside in favor of performances.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    14
    Vote Rating
    0
    rayman1900 is on a distinguished road

      0  

    Default


    Hi andreacammarata,

    I'm planning to make the trail follow my touch. I would also only create the trail when the user touches the screen. On touch end, the trail array will be destroyed.

    I'm making a playground panel, so there will be nothing on the view unless a background image I'll put as a css cls on my playground panel. So only this panel will implement the trail.

    I think, from a performance point of view, that you're right on this one. I'll see if only an array destroyed on touch end could affect performance, but it will be important to see if sencha could handle that kind of operation. The javascript script is using many css manipulation to make the "duplicate effect of the cursor". I will inform you if I got through ! Thank you ^^

Thread Participants: 1