Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
Eliminate 300 ms click delay
« previous
next »
Print
Pages: [
1
]
Author
Topic: Eliminate 300 ms click delay (Read 7720 times)
NOYB
Jr. Member
Posts: 75
Karma: 6
Eliminate 300 ms click delay
«
on:
December 24, 2017, 06:23:44 am »
The 300 ms click delay seems to have out lived it's usefulness. Could we please remove it?
It's been eliminated for specifically for Chrome via the viewport meta tag width=device-width. But that is browser specific and maybe even proprietary solution.
Think CSS is the W3C "recommending" solution.
body {
touch-action: manipulation;
}
Background:
What Exactly Is..... The 300ms Click Delay
https://www.telerik.com/blogs/what-exactly-is.....-the-300ms-click-delay
Thanks
«
Last Edit: December 24, 2017, 06:25:37 am by NOYB
»
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Eliminate 300 ms click delay
«
Reply #1 on:
December 24, 2017, 11:09:55 am »
The mozilla docs (german) say that this is experimental - which is not good for production use:
https://developer.mozilla.org/de/docs/Web/CSS/touch-action
OPNsense is using bootstrap, which should make it possible to use the viewport variant - However there are some very wide tables tables like in the HAProxy configuration which may require zooming on mobile devices.
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Eliminate 300 ms click delay
«
Reply #2 on:
December 24, 2017, 02:40:48 pm »
This does only affect mobile devices and may or may not be supported by the mobile browser, yes?
If that's the case even if not fully adopted we can try this as it brings desktop and mobile experience closer together... after branching 18.1 in early January.
Cheers,
Franco
PS: GitHub tickets are better suited for these things, especially when they propose lines of code.
Logged
NOYB
Jr. Member
Posts: 75
Karma: 6
Re: Eliminate 300 ms click delay
«
Reply #3 on:
December 24, 2017, 11:18:34 pm »
Does not prevent zoom. Zoom is still available by pinch. It only prevents double tap zoom in order to eliminate the 300 ms delay.
Here is the up to date Mozilla developers page. Updated Oct 25, 2017.
https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action
Supported by nearly every browser.
Not experimental.
It has been in use by others for quite some time.
W3C Recommendation - The touch-action CSS property
http://www.w3.org/TR/pointerevents/#the-touch-action-css-property
See no solid reason not to immediately implement this CSS property.
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Eliminate 300 ms click delay
«
Reply #4 on:
January 04, 2018, 10:10:20 pm »
This was just merged.
https://github.com/opnsense/core/pull/2039
Thanks,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
Eliminate 300 ms click delay