How to set not scrolling when touchmoved a sprite in ScrollView ?

  • adesuluhn
    Likes 0

    Problem Description

    Hi, So I create ScrollLayer class, then in MainLayer class I call ScrollView with ScrollLayer to be his content. the content contains any sprite(tile country map). I want every time I touchmoved the sprite in the ScrollView. The direction of ScrollView must stop. If i dragged the scrollLayer, the direction active again. Any advice please ?

    http://pastebin.com/WGzshDq9

    http://pastebin.com/JBHxtS4R

     

     


  • Sonar Systems admin
    Likes 0

    Has it been solved?


    This reply has been verified.
  • adesuluhn
    Likes 0

    yes, i forgot to add swallow touch to listener

  • Sonar Systems admin
    Likes 0

    Fantastic to hear it’s solved :D

     

    Don’t hesitate to post anymore queries you may have,

Login to reply