Replies: 4 comments 2 replies
-
@CodaCodr the There may be a workaround we can explore for events that do not bubble, i.e. adding the event listener on the capturing phase, but it will be a bit tricky as a single Note that I need to focus on another project for the next week or two where we have a pressing deadline. I can try to have a look after that unless someone beats me to it. |
Beta Was this translation helpful? Give feedback.
-
@saqimtiaz Still playing around with EC... here's my current thinking.
Sorry this is "late" - I really should have begun playing around like this well before 5.1.23 went live. I know you're busy, don't rush to respond... |
Beta Was this translation helpful? Give feedback.
-
Fair. PR? I have zero GH skills. :/ |
Beta Was this translation helpful? Give feedback.
-
LOL. I'm looking at it now. |
Beta Was this translation helpful? Give feedback.
-
Probably @saqimtiaz ...
I've been playing around with https://tiddlywiki.com/#EventCatcherWidget. Specifically, I took the example from that tiddler and and added mouseover and mouseenter.
mouseover works as I'd expect.
mouseenter has issues. Stepping through the code in
$:/core/modules/widgets/eventcatcher.js
, I see that on line 51,selectedNode
taken from event.target, getsdiv.tc-eventcatcher
whereas I think the later code wants/expectsdiv.item
.Looking at the event object, the
explicitOriginalTarget
property is the only prop carryingdiv.item
.It's not clear to me (I didn't investigate) what phase the widget expects to be handling - mouseenter does not bubble so maybe that's the root of the issue - that the parent "trap" is the only point at which it can be caught?
I didn't file a bug - I'm not confident it is one and I have more questions than answers ;)
Beta Was this translation helpful? Give feedback.
All reactions