add safeguard for multiple resizeStarted calls

This commit is contained in:
Benjamin Gray
2019-09-01 17:28:53 +10:00
parent 988a572b04
commit dc18af626e

View File

@@ -26,6 +26,7 @@ class PaneResizeHandleElement extends HTMLElement
resizeStarted: (e) ->
e.stopPropagation()
if @over then @removeChild @over
@over = document.createElement('div')
@over.classList.add('atom-panels-cursor-overlay')
@over.classList.add(if @isHorizontal then 'horizontal' else 'vertical')