Closed nomego closed 10 years ago
on-click
event is no longer being triggered for mobile (chrome)
You can use mouseup instead like I am doing here:
No, there's no way to trigger a trusted event to fire in script, as that would be counter to the security model.
You can use down
or up
events, which are synchronous with mousedown
, touchstart
, and mouseup
, touchend
respectively.
It seems like there's a security feature that only allows requesting fullscreen on a click-event.
This, combined with the
on-tap
implementation makes the following code not work:But instead, this (on-click) works for both desktop and mobile (chrome):
Is is possible to make on-tap able to trigger a secure enter fullscreen request?