This commit is contained in:
Ash Wilson
2018-07-25 09:18:52 -04:00
parent 192cf3b3fd
commit 3ec43b913f

View File

@@ -3364,10 +3364,10 @@ class LineNumberGutterComponent {
if (this.props.onMouseDown == null) {
this.props.rootComponent.didMouseDownOnLineNumberGutter(event)
} else {
const {bufferRowStr, screenRowStr} = event.target.dataset
const {bufferRow, screenRow} = event.target.dataset
this.props.onMouseDown({
bufferRow: parseInt(bufferRowStr, 10),
screenRow: parseInt(screenRowStr, 10),
bufferRow: parseInt(bufferRow, 10),
screenRow: parseInt(screenRow, 10),
domEvent: event
})
}
@@ -3375,10 +3375,10 @@ class LineNumberGutterComponent {
didMouseMove (event) {
if (this.props.onMouseMove != null) {
const {bufferRowStr, screenRowStr} = event.target.dataset
const {bufferRow, screenRow} = event.target.dataset
this.props.onMouseMove({
bufferRow: parseInt(bufferRowStr, 10),
screenRow: parseInt(screenRowStr, 10),
bufferRow: parseInt(bufferRow, 10),
screenRow: parseInt(screenRow, 10),
domEvent: event
})
}