You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue with the resizer component. I use Windows 10 with Chrome Canary. My Windows display settings are set to 4k with the recommended scaling factor of 300%. This leads to three times more resizing as the mouse movements sugests. This issue can be fixed by replacing lines 11 to 15 in the resizer index.js with the following:
const ratio = window.devicePixelRatio
const handleMouseMove = (e) => {
if (!direction) return
onResize(direction, e.movementX/ratio, e.movementY/ratio)
}
This scales the movement by the display scaling factor, leading to the correct resizing operation.
I encountered an issue with the resizer component. I use Windows 10 with Chrome Canary. My Windows display settings are set to 4k with the recommended scaling factor of 300%. This leads to three times more resizing as the mouse movements sugests. This issue can be fixed by replacing lines 11 to 15 in the resizer index.js with the following:
const ratio = window.devicePixelRatio
const handleMouseMove = (e) => {
if (!direction) return
onResize(direction, e.movementX/ratio, e.movementY/ratio)
}
This scales the movement by the display scaling factor, leading to the correct resizing operation.
Confer to: w3c/uievents#40
The text was updated successfully, but these errors were encountered: