From a4e7dce15425c30005dd03a9a29df961b6bb20eb Mon Sep 17 00:00:00 2001 From: zydezu Date: Mon, 29 Jul 2024 12:00:59 +0100 Subject: [PATCH] Fix [https://github.com/zydezu/ModernX/issues/36](https://github.com/zydezu/ModernX/issues/36), reverting the keyframe change (button functions are swapped) --- modernx.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modernx.lua b/modernx.lua index 4b6b82e..ad6532e 100644 --- a/modernx.lua +++ b/modernx.lua @@ -3067,15 +3067,15 @@ function osc_init() end end - ne.eventresponder['mbtn_left_down'] = + ne.eventresponder['mbtn_left_down'] = --exact seeks on left click function (element) element.state.mbtnleft = true - mp.commandv('seek', get_slider_value(element), 'absolute-percent') + mp.commandv('seek', get_slider_value(element), 'absolute-percent', 'exact') end - ne.eventresponder['shift+mbtn_left_down'] = --exact seeks on shift + left click + ne.eventresponder['shift+mbtn_left_down'] = --keyframe seeks on shift+left click function (element) element.state.mbtnleft = true - mp.commandv('seek', get_slider_value(element), 'absolute-percent', 'exact') + mp.commandv('seek', get_slider_value(element), 'absolute-percent') end ne.eventresponder['mbtn_left_up'] = function (element)