Hello,
I've two horizontal sliders in the group. This group has a vertical scroller. I've only activated the vertical scroll for this scroller.
But i cannot use the slider smoothly : it stop after few movements (it's like the scroller intercept the movement).
I've put a sample stack to test the problem (tested under android emulator, bluestacks and a real android device).
Thanks
Slider in a scroller
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
-
- VIP Livecode Opensource Backer
- Posts: 369
- Joined: Sun Dec 19, 2010 1:10 am
- Location: UK
- Contact:
Re: Slider in a scroller
Try experimenting with the following two properties via the mobileControlSet command...
• canCancelTouches (iOS Only) - Determines whether the scroller is allowed to cancel a touch that has been passed through to the underlying controls when it thinks it is a scroll gesture (maps to the UIScrollView canCancelContentTouches property).
• delayTouches (iOS Only) - Determines whether the scroller delays passing on touch-down events until it has determined whether it is the start of a scroll gesture or not (maps to the UIScrollView delaysContentTouches property). This is a boolean value.
I did a quick test by setting them both to false in your test stack. It works, but not if you move too quickly after the initial touch : the scroller steals the touch if it thinks you're trying to scroll - basically if your finger moves straight after touching. Since the mobile controls sit above the stack, I don't think it's possible to get the message before the scroller.
• canCancelTouches (iOS Only) - Determines whether the scroller is allowed to cancel a touch that has been passed through to the underlying controls when it thinks it is a scroll gesture (maps to the UIScrollView canCancelContentTouches property).
• delayTouches (iOS Only) - Determines whether the scroller delays passing on touch-down events until it has determined whether it is the start of a scroll gesture or not (maps to the UIScrollView delaysContentTouches property). This is a boolean value.
I did a quick test by setting them both to false in your test stack. It works, but not if you move too quickly after the initial touch : the scroller steals the touch if it thinks you're trying to scroll - basically if your finger moves straight after touching. Since the mobile controls sit above the stack, I don't think it's possible to get the message before the scroller.
LiveCode Development & Training : http://splash21.com
Re: Slider in a scroller
Hello,
Thanks for your reply.
It seems MobGui is not the responsible.
I've filled a similar bug : http://quality.runrev.com/show_bug.cgi?id=12419 which occur without mobgui.
Thanks for your reply.
It seems MobGui is not the responsible.
I've filled a similar bug : http://quality.runrev.com/show_bug.cgi?id=12419 which occur without mobgui.