mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-05 19:06:47 +08:00
fix(drag): Pass correct drag coordinates from event
- Don't use magic event variable without declaring it
This commit is contained in:
parent
e5500b433b
commit
43093cda31
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ class MultiselectList extends React.Component
|
|||
# Public Methods
|
||||
|
||||
itemIdAtPoint: (x, y) ->
|
||||
item = document.elementFromPoint(event.clientX, event.clientY).closest('[data-item-id]')
|
||||
item = document.elementFromPoint(x, y).closest('[data-item-id]')
|
||||
return null unless item
|
||||
return item.dataset.itemId
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue