tweak: increased scroll speed

This commit is contained in:
Sara 2025-09-17 22:45:09 +02:00
parent 98fd90ff4d
commit b7063d99ee

View file

@ -156,9 +156,9 @@ int main(int argc, char *argv[]) {
break;
case SDL_EVENT_MOUSE_WHEEL:
if (shiftDown) {
scrollMotion = (Clay_Vector2) { event.wheel.y * 2.f, event.wheel.x * 2.f };
scrollMotion = (Clay_Vector2) { event.wheel.y * 5.f, event.wheel.x * 5.f };
} else {
scrollMotion = (Clay_Vector2) { event.wheel.x * 2.f, event.wheel.y * 2.f };
scrollMotion = (Clay_Vector2) { event.wheel.x * 5.f, event.wheel.y * 5.f };
}
break;
case SDL_EVENT_MOUSE_MOTION: