J jimseng Active Member Licensed User Longtime User Jan 18, 2012 #1 Hi. I am educating myself on orientation sensors. I am just looking into tipping the phone and moving a scroll bar. It works fine but is a bit jittery because the sensorchanged event is a little slow (or the phone sensor update is slow). I am trying to come up with a way of smoothing the response. I have been looking at comparing the changes and moving the scrollbar in a loop but so far I have't had fantastic success. Has anybody done this or have any good ideas? Cheers
Hi. I am educating myself on orientation sensors. I am just looking into tipping the phone and moving a scroll bar. It works fine but is a bit jittery because the sensorchanged event is a little slow (or the phone sensor update is slow). I am trying to come up with a way of smoothing the response. I have been looking at comparing the changes and moving the scrollbar in a loop but so far I have't had fantastic success. Has anybody done this or have any good ideas? Cheers
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2012 #2 The phone shake example includes a method that tracks the sensors and helps with understanding their behavior. See this link: http://www.b4x.com/forum/basic4andr...droid-shake-event-phonesensors.html#post54631 Upvote 0
The phone shake example includes a method that tracks the sensors and helps with understanding their behavior. See this link: http://www.b4x.com/forum/basic4andr...droid-shake-event-phonesensors.html#post54631