ts-toolkit icon indicating copy to clipboard operation
ts-toolkit copied to clipboard

Handle edge tap decisions in app

Open chocolatkey opened this issue 3 years ago • 1 comments

Edge taps to turn pages should be handled in the (test) app. The navigator will just send the tap event.

Each app might want different edge threshold, or even disable this feature for accessibility reasons.

Originally posted by @mickael-menu in https://github.com/readium/ts-toolkit/pull/12#discussion_r948082521

chocolatkey avatar Nov 01 '22 01:11 chocolatkey

This is resurfacing so some additional context.

Right now the default listener for both tap and click is allocating one quarter of the iframe window on the left and the right to navigate to the previous/next screen. It is relying on cframes to access the window.innerWidth, a property we want to make private eventually.

cc @HadrienGardeur in case you want to develop further.

JayPanoz avatar Feb 13 '25 12:02 JayPanoz