mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
fix(focused-content): Prevent keydowns from outpacing animation frames, improves keyboard move speed through thread list
To reproduce previous issue, turn key rpeat speed all the way up and then hold an arrow key.
This commit is contained in:
parent
65bf4f7763
commit
705200a138
|
@ -81,6 +81,7 @@ class FocusedContentStore
|
|||
return if @_keyboardCursor[collection]?.id is item?.id
|
||||
|
||||
@_keyboardCursor[collection] = item
|
||||
window.requestAnimationFrame =>
|
||||
@trigger({ impactsCollection: (c) -> c is collection })
|
||||
|
||||
_onFocus: ({collection, item}) =>
|
||||
|
@ -89,7 +90,7 @@ class FocusedContentStore
|
|||
|
||||
@_focused[collection] = item
|
||||
@_keyboardCursor[collection] = item if item
|
||||
|
||||
window.requestAnimationFrame =>
|
||||
@trigger({ impactsCollection: (c) -> c is collection })
|
||||
|
||||
_onWorkspaceChange: =>
|
||||
|
|
Loading…
Reference in a new issue