Tweak pinch-to-zoom timing

Toggle fullscreen immediately, then prevent future toggles for 1s.
This commit is contained in:
Feross Aboukhadijeh
2017-03-08 15:00:42 -08:00
parent 78e46f5576
commit e5fccd93a8

View File

@@ -148,7 +148,7 @@ function onState (err, _state) {
const debouncedFullscreenToggle = debounce(function () {
dispatch('toggleFullScreen')
}, 100)
}, 1000, true)
document.addEventListener('wheel', function (event) {
// ctrlKey detects pinch to zoom, http://crbug.com/289887