diff --git a/scripts/uosc/elements/Volume.lua b/scripts/uosc/elements/Volume.lua index 356feca..05e1d28 100644 --- a/scripts/uosc/elements/Volume.lua +++ b/scripts/uosc/elements/Volume.lua @@ -1,3 +1,4 @@ +msg = require('mp.msg') local Element = require('elements/Element') --[[ MuteButton ]] @@ -73,7 +74,9 @@ function VolumeSlider:render() if width <= 0 or height <= 0 or visibility <= 0 then return end + msg.trace("VolumeSlider: proximity_raw:", self.proximity_raw) if self.proximity_raw == 0 then + msg.trace("VolumeSlider: setting on_primary_down") cursor.on_primary_down = function() self.pressed = true self:set_from_cursor() diff --git a/scripts/uosc/lib/utils.lua b/scripts/uosc/lib/utils.lua index f25c52e..24425df 100644 --- a/scripts/uosc/lib/utils.lua +++ b/scripts/uosc/lib/utils.lua @@ -1,4 +1,5 @@ --[[ UI specific utilities that might or might not depend on its state or options ]] +msg = require('mp.msg') -- Sorting comparator close to (but not exactly) how file explorers sort files. sort_filenames = (function() @@ -646,6 +647,7 @@ end function render() if not display.initialized then return end + msg.trace("render") state.render_last_time = mp.get_time() cursor.reset_handlers() diff --git a/scripts/uosc/main.lua b/scripts/uosc/main.lua index 0673a1e..8811a71 100644 --- a/scripts/uosc/main.lua +++ b/scripts/uosc/main.lua @@ -671,6 +671,7 @@ end function handle_mouse_pos(_, mouse) if not mouse then return end + msg.trace("handle_mouse_pos: x:", mouse.x, ", y:", mouse.y, ", hover:", mouse.hover, ", hover_raw:", cursor.hover_raw, "first_real_received:", state.first_real_mouse_move_received) if cursor.hover_raw and not mouse.hover then handle_mouse_leave() else @@ -879,7 +880,9 @@ cursor.decide_keybinds() -- Pointer related binding groups function make_cursor_handler(event, cb) return function(...) + msg.trace("UOSC EVENT:", event) call_maybe(cb, ...) + msg.trace("calling cursor[event]", cursor[event]) call_maybe(cursor[event], ...) cursor.queue_autohide() -- refresh cursor autohide timer end