Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Scrollview can't oblique move by touch
Started by Sayhong's CTO Feb 17 2019 12:25 PM

1 reply to this topic

Best Answer Sayhong's CTO , 20 February 2019 - 06:28 AM

I resolve:

lock the scrollview, and set position by math from event.x,event.y,event.xStart,event.yStart

Then unlock the scrollview.

[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Sayhong's CTO

[GLOBAL: userInfoPane.html]
Sayhong's CTO
  • Observer

  • 27 posts
  • Corona SDK

Is there any parameter can be set to let scrollview move x and y at the same time by touch?

Just like this video:

https://www.youtube.com/watch?feature=player_embedded&v=ecAcUxex46c#t=74

 

example:iOS's directionalLockEnabled

 

 

This is the problem video:

 

Thank you



[TOPIC: post.html]
#2

Sayhong's CTO

[GLOBAL: userInfoPane.html]
Sayhong's CTO
  • Observer

  • 27 posts
  • Corona SDK

  Best Answer

I resolve:

lock the scrollview, and set position by math from event.x,event.y,event.xStart,event.yStart

Then unlock the scrollview.




[topic_controls]
[/topic_controls]