Scrollbar

Scrollbar

Update (4/2014):

-Option whether to scroll free or scroll only to pages

-Panel and indicator are identified with name, not ID, thanks Pierre Hébert

I hope I didn’t forget anything.

No guarantee to work.

Feel free to report bugs and post suggestions.

Script & setup:

http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_scrollbar

#Scrollbar

#LLX_script

]]>

10 Commentsto Scrollbar

  1. Anonymous says:

    < ![CDATA[

    It works ! Congratulations !


    I would suggest to use getItemByLabel instead of getItemById, as it is easier to set a label than retrieving the id, and the id may change when sharing templates too.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Pierre Hébert “… and the id may change when sharing templates too.”



    Been meaning to ask about that. Is this true whether importing template or installing apk?

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Chris Chastain I think both would re-generate these items, and they’ll get a new ID

    ]]>

  4. Anonymous says:

    < ![CDATA[

    More exactly an item id is a combination between the item number and the desktop number (so that it’s possible to link an item with a container). When merging desktops from a template (either in a file or an apk) desktops need to be re-numbered, and items id need to follow.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    update: simplified

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Lukas Morawietz  : Thanks for all your great scripts, but I can’t get this one to work … Can you help me please ?


    I create a 1st panel (as container) call “scrollbar”, set vertical only and snap to page


    Inside this first panel, I add a 2nd panel call “scroll”, pinned it and infinite scrolling


    Inside the 2nd panel I add a LL Action (do nothing) call “indicator”, not clickable.


    In the 1st and 2nd panel I set the script in position change, but I get this message : 


    At line 10 : TypeError : impossible to call the method “{1} de {0} (Scrollbar#10)



    What am I doing wrong ?  Thanks in advanced

    ]]>

  7. Anonymous says:

    < ![CDATA[

    This script is for use in a desktop, not a panel.


    However, this can be done also with an easy addition.


    Wait a second.

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Change the line:


    var d=LL.getDesktopByName(Desktop_Name);



    to:


    var d=LL.getCurrentDesktop().getItemByLabel(Desktop_Name).getContainer();

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Thank you very much !!! 


    I’ll try to change the line, I didn’t understand the script was for destock … 


    Thanks for your help 🙂 and great work 

    ]]>

  10. Anonymous says:

    < ![CDATA[

    The script has received an update! I added tap support.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *