Reduce scale on hover event for high resolution displays.

This commit is contained in:
yukirij 2024-10-15 12:40:35 -07:00
parent fb749d9ede
commit 50499653d5

View File

@ -127,7 +127,7 @@ const INTERFACE = {
hover(event) { hover(event) {
let initial_hover = INTERFACE_DATA.hover; let initial_hover = INTERFACE_DATA.hover;
let apothem = INTERFACE_DATA.Render.scale; let apothem = INTERFACE_DATA.Render.scale / (window.devicePixelRatio || 1);
let radius = INTERFACE.Radius * apothem; let radius = INTERFACE.Radius * apothem;
let halfradius = radius / 2; let halfradius = radius / 2;
let grid_offset_x = 1.5 * radius; let grid_offset_x = 1.5 * radius;