more debug logging
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
msg = require('mp.msg')
|
||||||
local Element = require('elements/Element')
|
local Element = require('elements/Element')
|
||||||
|
|
||||||
--[[ MuteButton ]]
|
--[[ MuteButton ]]
|
||||||
@@ -73,7 +74,9 @@ function VolumeSlider:render()
|
|||||||
|
|
||||||
if width <= 0 or height <= 0 or visibility <= 0 then return end
|
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
|
if self.proximity_raw == 0 then
|
||||||
|
msg.trace("VolumeSlider: setting on_primary_down")
|
||||||
cursor.on_primary_down = function()
|
cursor.on_primary_down = function()
|
||||||
self.pressed = true
|
self.pressed = true
|
||||||
self:set_from_cursor()
|
self:set_from_cursor()
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
--[[ UI specific utilities that might or might not depend on its state or options ]]
|
--[[ 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.
|
-- Sorting comparator close to (but not exactly) how file explorers sort files.
|
||||||
sort_filenames = (function()
|
sort_filenames = (function()
|
||||||
@@ -646,6 +647,7 @@ end
|
|||||||
|
|
||||||
function render()
|
function render()
|
||||||
if not display.initialized then return end
|
if not display.initialized then return end
|
||||||
|
msg.trace("render")
|
||||||
state.render_last_time = mp.get_time()
|
state.render_last_time = mp.get_time()
|
||||||
|
|
||||||
cursor.reset_handlers()
|
cursor.reset_handlers()
|
||||||
|
@@ -671,6 +671,7 @@ end
|
|||||||
|
|
||||||
function handle_mouse_pos(_, mouse)
|
function handle_mouse_pos(_, mouse)
|
||||||
if not mouse then return end
|
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
|
if cursor.hover_raw and not mouse.hover then
|
||||||
handle_mouse_leave()
|
handle_mouse_leave()
|
||||||
else
|
else
|
||||||
@@ -879,7 +880,9 @@ cursor.decide_keybinds()
|
|||||||
-- Pointer related binding groups
|
-- Pointer related binding groups
|
||||||
function make_cursor_handler(event, cb)
|
function make_cursor_handler(event, cb)
|
||||||
return function(...)
|
return function(...)
|
||||||
|
msg.trace("UOSC EVENT:", event)
|
||||||
call_maybe(cb, ...)
|
call_maybe(cb, ...)
|
||||||
|
msg.trace("calling cursor[event]", cursor[event])
|
||||||
call_maybe(cursor[event], ...)
|
call_maybe(cursor[event], ...)
|
||||||
cursor.queue_autohide() -- refresh cursor autohide timer
|
cursor.queue_autohide() -- refresh cursor autohide timer
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user