Skip to content

Commit

Permalink
Fix hover event types
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkinabout committed Oct 28, 2023
1 parent 81fef3c commit bebaa6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions scripts/roll-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,15 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {

const item = coreModule.api.Utils.getItem(this.actor, actionId)

if (event.type === 'mouseenter') {
switch (event.type) {
case 'mouseenter':
case 'mouseover':
Hooks.call('tokenActionHudSystemActionHoverOn', event, item)
} else {
break
case 'mouseleave':
case 'mouseout':
Hooks.call('tokenActionHudSystemActionHoverOff', event, item)
break
}
}
}
Expand Down
Loading

0 comments on commit bebaa6e

Please sign in to comment.