openfrontio / openfrontio/OpenFrontIO

Double Click causes Webpage zoom-in (iOS)

Open
#4,609 9 comments 0 reactions 1 assignee Claimed by @Kronbii View on GitHub
approved Bug UI/UX
Dominant language
TypeScript
Stars
2.7k
Forks
1.4k
Avg merge
17h 43m
Merged PRs (30d)
310

Description

**Describe the bug**
When double clicking in Brave (and most likely all other WebKit browsers) the browser performs a page zoom in, this is different from the normal openfront native zoom, since this one is not revertable by simply zooming (because this triggers openfront too zoom out, not the webpage).

**To Reproduce**
Steps to reproduce the behavior:

1. Use Brave (probably any WebKit Browser)
2. Start a Game
3. Double tap on the map
4. After some taps the whole webpage may be zoomed in causing the HUD to be inaccessible (not exactly sure when the gesture is triggered)

**Expected behavior**
The webpage zoom should be prevented (if possble).

**Screenshots**
Couldn't reproduce the bug for this, once it happens to me again I will attach a screenshot.

**Smartphone (please complete the following information):**

- Device: IPad
- OS: iOS18.7
- Browser: Brave
- Version: latest

**Additional context**
Sometimes can be fixed by opening the information tab (via the ℹ️-button) and then double tapping in the opened dialog! (again not very consistent).

Maybe this can be fixed by intercepting the doubleclick/touch gesture in js?

**Assignment**

- [ ] I'd like to be assigned to this issue and work on it myself

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.