- From: <bugzilla@jessica.w3.org>
- Date: Wed, 20 Aug 2014 07:14:47 +0000
- To: www-dom@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26611
Bug ID: 26611
Summary: [Proposal] Add "Zoom" event
Product: WebAppsWG
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DOM3 Events
Assignee: travil@microsoft.com
Reporter: masayuki@d-toybox.com
QA Contact: public-webapps-bugzilla@w3.org
CC: mike@w3.org, www-dom@w3.org
Mozilla have a bug report about a way to prevent content zoom by web apps.
https://bugzilla.mozilla.org/show_bug.cgi?id=1052253
According to the bug report, Chrome fires a wheel event whose ctrlKey is true
when user attempts to "pinch to zoom" on Mac. Then, if the wheel event's
default is prevented, Chrome cancels the zoom.
On the other hand, Firefox doesn't fire any events at "pinch to zoom" on Mac.
Therefore, web apps cannot prevent to zoom. Of course, Firefox can dispatch
such wheel event. However, Firefox users can customize a way to zoom with
wheel. E.g., they can use Option (Alt) key for it and/or reverse the direction.
Therefore, web apps cannot distinguish which wheel event is a "before zoom"
event strictly.
I'd like to suggest a simple event "Zoom". When users attempt to use zoom
feature of browsers from keyboard shortcut, wheel or menu, it should be fired.
And if its default is prevented, browser should cancel it.
I think that UIEvent is enough for the event. Its detail value should be |new
zoom level * 100| or just 1 or -1 for indicating zooming in or out.
--
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 20 August 2014 07:14:49 UTC