Adding cursor event for a list
#1
There is a horizontal list, so left-right arrows scroll it. All's OK.

Now, can I tap into scrolling with my own events somehow? Defining <onleft> <onright> seems to do nothing.
Reply
#2
You can use a fake button to control the list and supply additional actions e.g.
<onleft>Control.Move(ID,-1)</onleft>
<onleft>ADDITIONAL_ACTION</onleft>

The alternative is to use a hidden button in the <focusedlayout> with an <onfocus> condition. But that will just trigger something when the list moves - i.e. you won't be able to define separate actions for left and right individually.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#3
Thanks, I'll redesign and use 2nd approach (didn't know that focusable items are allowed on lists).
Reply
#4
They aren't really (you will get an error in the log) and you can't use it for official repo submission, but they do work as a hack for an onfocus command
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply

Logout Mark Read Team Forum Stats Members Help
Adding cursor event for a list0