SlideView - Help Needed for 2 Major Issues
Paul Hibbert
paulhibbert at mac.com
Tue Sep 24 01:07:18 EDT 2013
Ender,
By using the message watcher I noticed a mouseLeave message being sent when swiping on the block.png image, so adding…
on mouseLeave
if sSlideGrab is not empty then mouseUp
end mouseLeave
…to the script of group "thePanel" seems to help some issues.
Paul
On 2013-09-23, at 7:48 PM, Ender Nafi Elekcioglu wrote:
> Hi folks,
>
> I've prepared a simple stack to utilize a common behaviour in mobile apps.
>
> It's a SlideView project, seen in many mainstream apps; swiping from the edge reveals a pane beneath.
> iOS 7 brought another use for it, though, swiping from left to go back previous page.
> Thus, its importance got just bigger.
>
> There are two major issues and I couldn't solve them.
> I asked LiveCode support, unfortunately they're too busy to dive in my code.
>
> I have one urgent and a couple of non-urgent projects awaiting this feature.
> So, I'd be glad if any of you might help.
>
> I tried to explain the bugs below but a video is worth thousand words ;-)
> Here is a short screencast: http://www.youtube.com/watch?v=lNASXMjzFLo
> And here is the stack: http://tinyurl.com/pkuus9a
> Screenshots: http://forums.runrev.com/viewtopic.php?f=49&t=16981&sid=c9d742c8027879e891d6956ccdd96f79
>
> Bug 1:
> If the user starts swipe by touching the background picture or button, it works.
> But if the user starts swipe by touching a front control,
> then it sticks to finger and requires a secondary click to work.
>
>
> Bug 2:
> The controls of bottom panels interfere the swipe gesture and blocks it.
>
> Try swiping at different vertical start positions, you'll see the weird behaviours.
> Sometimes, it doesn't reveal;
> sometimes, it reveals and automatically goes to another page;
> sometimes, it reveals and hides automatically a couple of times;
> sometimes, it just sticks to finger and requires another click to let it go.
>
> I put an if-clause to prevent it; but it seems not working:
> on mouseDown
> if the short name of the target is not in "thePageNav,theSettings,thePageNav1,thePageNav2,thePageNav3" then
>
> It's line 106 in the script of group "thePanel".
>
>
> Bug 3:
> If front controls are grouped {a sub-group in group "thePageContent"}, slide behaviour doesn't work at all.
> It just doesn't response.
> But I couldn't replicate this issue in the screencast.
>
>
> Any help or insight much appreciated.
> Thank you.
>
>
> ~ Ender Nafi
> ~… together, we're smarter …~
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list