* DEV: replace swipe events to use translate rather than left/right translate is better for animations. also use native css animations for opening and closing. * a11y: respect prefers reduced motion on mobile timeline * DEV: reduce jquery usage * DEV: add tests for menu swipe events test is run in 50% zoom/transform which means offsets and x of touch events need to be halved Refactor test window to use a transform rather than non-standard zoom property Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
12 lines
566 B
JavaScript
12 lines
566 B
JavaScript
// discourse-skip-module
|
|
|
|
document.write(
|
|
'<div id="ember-testing-container"><div id="ember-testing"></div></div>'
|
|
);
|
|
document.write(
|
|
"<style>#ember-testing-container { position: fixed; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; transform: translateZ(0)} #ember-testing { width: 200%; height: 200%; transform: scale(0.5); transform-origin: top left; }</style>"
|
|
);
|
|
|
|
let setupTestsLegacy = require("discourse/tests/setup-tests").setupTestsLegacy;
|
|
setupTestsLegacy(window.Discourse);
|