Slider Control with Native Scroller
Posted: Tue Mar 03, 2015 8:32 pm
Forum,
I have a card that has multiple controls that is larger then the display view, so I have created a Native Android Scroller for the page.
The problem is that the Slider Control does not allow the user to slide the slider smoothly because of the Native Android Scroller. Don't know if anyone else has run into this.
So I added message handlers to the Livecode slider to disable the Native Android Scroller when the user touches in the slider and then enable it again when the user stops touching the slider. I've implemented the functionality with both the mouseDown/mouseUp and touchStart/touchEnd message in the attached stack.
The problem is that when the user touches the slider, the slider doesn't slide until you touch it a second time. I've put a Debug field on the card and the slider gets the mouseDown or touchStart message when the user touches the slider, but the slider will not move until you release the touch and touch it again. No Messages are received. You can then slide the slider and you get a mouseUp / touchEnd message when you release the touch of the slider.
Looks like you need to double tap the slider to get it to slide. Is this how it should work or is it a bug?
Not a very good user experience, but at least the slider move smoothly after you get it to slide.
Any recommendation?
Thanks
dan
I have a card that has multiple controls that is larger then the display view, so I have created a Native Android Scroller for the page.
The problem is that the Slider Control does not allow the user to slide the slider smoothly because of the Native Android Scroller. Don't know if anyone else has run into this.
So I added message handlers to the Livecode slider to disable the Native Android Scroller when the user touches in the slider and then enable it again when the user stops touching the slider. I've implemented the functionality with both the mouseDown/mouseUp and touchStart/touchEnd message in the attached stack.
The problem is that when the user touches the slider, the slider doesn't slide until you touch it a second time. I've put a Debug field on the card and the slider gets the mouseDown or touchStart message when the user touches the slider, but the slider will not move until you release the touch and touch it again. No Messages are received. You can then slide the slider and you get a mouseUp / touchEnd message when you release the touch of the slider.
Looks like you need to double tap the slider to get it to slide. Is this how it should work or is it a bug?
Not a very good user experience, but at least the slider move smoothly after you get it to slide.
Any recommendation?
Thanks
dan