mirror of
https://github.com/atom/atom.git
synced 2026-02-10 22:55:09 -05:00
Set cursor position on single click
This commit is contained in:
committed by
Antonio Scandurra
parent
88f3a5b468
commit
fab5a93254
@@ -736,7 +736,11 @@ class TextEditorComponent {
|
||||
}
|
||||
|
||||
didMouseDownOnLines (event) {
|
||||
console.log(this.screenPositionForMouseEvent(event))
|
||||
const screenPosition = this.screenPositionForMouseEvent(event)
|
||||
|
||||
if (event.detail === 1) {
|
||||
this.props.model.setCursorScreenPosition(screenPosition)
|
||||
}
|
||||
}
|
||||
|
||||
screenPositionForMouseEvent ({clientX, clientY}) {
|
||||
|
||||
Reference in New Issue
Block a user