This is the bug I mentioned with the scrolling.

This is the bug I mentioned with the scrolling.

The script just place the item as far from the center as you scroll the container. And then it sets the container position to the origin.

When you release the finger while scrolling, what I expect is that the item stops suddenly, because of the setPosition, but instead it continues scrolling with the motion.

That’s why I suggested the container.stopScrolling()

I hope you now understand.

Note: you said you fixed a relative bug, it’s something related to the sides right?

When the free scroll is disabled and you go throw the side of a desktop now it don’t scroll back…something strange if you want to try it.

(The script I use here is in the first comment. But it’s the same as the other post)

]]>

6 Commentsto This is the bug I mentioned with the scrolling.

  1. Anonymous says:

    < ![CDATA[

    //the container


    var cont = LL.getEvent().getContainer();



    //the current position of the desktop


    var posX=cont.getPositionX();


    var posY=cont.getPositionY();



    //visually of that position


    cont.getItemByLabel(“marker”).setPosition(-posX+cont.getWidth()/2,-posY+cont.getHeight()/2);



    //reset position


    cont.setPosition(0,0,1,false);

    ]]>

  2. Anonymous says:

    < ![CDATA[

    If this would be fixed, all of my animations and the loop wouldn’t work correct anymore. So I agree, that we would need an additional method for this

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Ahhh, thank you for the video, now I understand!


    I was thinking at something really different. I am calling “fling” what you are calling “scroll” and “scroll” is for me “drag”.


    Now, I wouldn’t say this is a bug and I agree with both of you: it need to be kept this way, and a method need to be added to control this (stopFlinging, already existing but not available to scripts)

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Actually this will be “cancelFling”

    ]]>

  5. Anonymous says:

    < ![CDATA[

    It will be in the update I just piushed to google servers but I didn’t have the time to test it. The update was to fix the Item.getType bug.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Works perfectly. Thanks!

    ]]>

Leave a Reply

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