svelte-material-ui
svelte-material-ui copied to clipboard
Slider doesn't work correctly under when CSS zoom property is used - mouse position not synced correctly
Describe the bug when setting zoom level via CSS, slider dragging doesn't match up with the position of the mouse
To Reproduce Steps to reproduce the behavior:
- Go to https://sveltematerialui.com/demo/slider/
- Open Console
- run document.body.style.zoom = '120%'
- Try sliding the value - the circle doesn't match the mouse pointer
Expected behavior Expected zoom levels to work correctly. For example, see https://svelte.dev/repl/e93d43c42b434e3aa3e2a5815f805c75?version=3.22.3 This slider works correctly under different zoom levels