I'm developing a game in GameMaker Studio 2 where I implemented touch-based object dragging functionality. The code works as expected on Windows 7, but when testing on Windows 10, the dragging speed is significantly slower, even though the same code is used on both systems. Here's the code for object drag:
// Create Eventdragging = false;drag_offset_x = 0;drag_offset_y = 0;// Mouse Down Eventif (mouse_check_button_pressed(mb_left)) { dragging = true; drag_offset_x = mouse_x - x; drag_offset_y = mouse_y - y;}// Mouse Up Eventif (mouse_check_button_released(mb_left)) { dragging = false;}// Step Eventif (dragging) { x = mouse_x - drag_offset_x; y = mouse_y - drag_offset_y;}