fdionisi / xray

An experimental next-generation Electron-based text editor
MIT License
47 stars 0 forks source link

Add/implement mouse selections #3

Closed fdionisi closed 5 years ago

fdionisi commented 5 years ago

@pranaygp I had a look at the PR and found the potential issue: animationFrameLoop was being called recursively.

I moved it to TextEditor.handleMouseMove where I exit from it early when this.state.mouseDown is false, avoid calling window.requestAnimationFrame.

It has been a long time, but if you have a chance to ensure my changes are not breaking something else that I'm not seeing it would be amazing.

Original PR: atom#107