onTouchUp property
Callback fired when the user releases a touch on the EPUB viewer.
Provides normalized coordinates (0.0-1.0) relative to the WebView dimensions. Coordinates use the same calculation logic as selection coordinates.
Fires regardless of whether there's an active text selection, allowing you to:
- Determine which zone of the EPUB viewer was tapped
- Compare tap location with selection location to trigger selection-specific pop-ups
- Control navigation and menus based on tap position
Parameters:
x- Normalized X coordinate (0.0 = left edge, 1.0 = right edge)y- Normalized Y coordinate (0.0 = top edge, 1.0 = bottom edge)
Implementation
final void Function(double x, double y)? onTouchUp;