Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 4d6a8d2

Browse files
change panning
1 parent 72c0c20 commit 4d6a8d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OFS-lib/UI/OFS_ScriptTimeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void ScriptTimeline::mouseDrag(SDL_Event& ev) noexcept
222222
}
223223
else if(PositionsItemHovered) {
224224
if(ImGui::IsMouseDown(ImGuiMouseButton_Middle)) {
225-
float relX = (motion.xrel * 2) / hoveredCanvasSize.x;
225+
float relX = -motion.xrel / hoveredCanvasSize.x;
226226
float seekToTime = (offsetTime + (visibleTime / 2.f)) + (visibleTime * relX);
227227
EventSystem::PushEvent(ScriptTimelineEvents::SetTimePosition, (void*)(*(intptr_t*)&seekToTime));
228228
return;

0 commit comments

Comments
 (0)