danieldesira / TurtleQuest

https://turtle-quest.vercel.app/
Creative Commons Attribution 4.0 International
0 stars 0 forks source link

Mobile #26

Closed danieldesira closed 7 months ago

danieldesira commented 7 months ago

The following points to be tackled:

  1. Game canvas to fit on screen.
  2. Menu to fit on screen.
  3. Add class "portrait:rotate:90" to onscreen controls.
danieldesira commented 7 months ago

Changes above done but need to fix issue with controls when right clicked on mobile.

Update: Long hold triggering context menu needs to be disabled in order to fix this issue, at least on the onscreen controls. This should be achievable through responding to the onContextMenu event.

danieldesira commented 7 months ago

Apparently the latter bug was generic and was also occurring on desktop. Removing the dependency parameter altogether for the useEffect appears to have fixed the issue once again. Hence merging with develop and closing this ticket.