mirror of
https://github.com/discourse/discourse.git
synced 2025-01-22 11:40:06 +08:00
6cd4b8de6d
This commit brings two fixes. - increase the delay to trigger the action menu - check of user activation before using vibrate: https://developer.mozilla.org/en-US/docs/Glossary/Sticky_activation https://developer.mozilla.org/en-US/docs/Web/Security/User_activation https://developer.mozilla.org/en-US/docs/Web/API/UserActivation/hasBeenActive > Sticky activation is a window state that indicates a user has pressed a button, moved a mouse, used a menu, or performed some other user interaction. It is not reset after it has been set initially (unlike transient activation). > APIs that require sticky activation (not exhaustive): > - Navigator.vibrate() > - VirtualKeyboard.show() > - Autoplay of Media and Web Audio APIs (in particular for AudioContexts). Before this fix, we could end up with this error in the console in tests: > Blocked call to navigator.vibrate because user hasn't tapped on the frame or any embedded <!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. --> |
||
---|---|---|
.. | ||
admin | ||
bootstrap-json | ||
confirm-new-email | ||
deprecation-silencer | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-hbr | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
ember-production-deprecations | ||
float-kit | ||
locales | ||
patches | ||
pretty-text | ||
select-kit | ||
theme-transpiler | ||
truth-helpers | ||
wizard | ||
.licensee.json | ||
.npmrc | ||
handlebars-shim.js | ||
package.json | ||
polyfills.js | ||
run-patch-package | ||
service-worker.js.erb | ||
yarn.lock |