baker icon indicating copy to clipboard operation
baker copied to clipboard

Feature request: horizontal swipe deadzone/buffer

Open Ajguy opened this issue 13 years ago • 3 comments

I'm pretty sure this isn't possible in the current version of the Baker framework, so I wanted to request this feature and see if anyone else was interested in it.

Several pages in my magazine feature javascript level interactivity with up and down swipes of the screen. However, if the user moves their swipe too far left or right, the page is turned. It would be great if there could be a setting (possibly in the book.json) to set a deadzone based on pixels before a horizontal swipe starts to take effect. Is anything like this even possible?

Ajguy avatar Jan 21 '13 03:01 Ajguy

We are using the native Apple SDK to achieve the swipe effect, so I don't know how hard would it be to make it flexible. I keep this as a feature request. :)

folletto avatar Jan 21 '13 10:01 folletto

Maybe you can do it with javascript: did you try to extend the interactive area without changing it's visual size? If you prevent the event propagation and the default behavior in this area, what happens? Sorry to answer by questions, I have no time to test it now.

benoitchantre avatar Jan 21 '13 10:01 benoitchantre

Thanks for the responses!

Currently, the entire screen is using swipes up and down. Basically, each "page" animates in new "slides" when swiped vertically. Swiping left or right invokes the basic page turn. I guess for now, I hope our users will be mindful of their swipes until I can work something out. :)

And thank you, folletto, for minding the request. None of what I'm working on would have been remotely possible without Baker, so it's all greatly appreciated.

Ajguy avatar Jan 21 '13 17:01 Ajguy