mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 16:08:24 +03:00
81145eb35f
When translating a logical screen position (columns/rows) to a pixel position, the editor now builds a temporary version of the line for the given row. It then uses the DOM range API to insert an empty range at the correct text node and offset for the given column and determines the left position based on its clientRect. Depending on the speed impact, we may want to optimize this by recycling the existing line node if it exists on screen rather than building a new one every time. We will still have to build one if the line we're moving to isn't on screen yet. We could also increase the chances of the line being on screen by autoscrolling to the vertical position first, and *then* calculating the horizontal position. Lots to explore here. |
||
---|---|---|
.. | ||
app | ||
fixtures | ||
stdlib | ||
atom-reporter.coffee | ||
spec-bootstrap.coffee | ||
spec-helper.coffee | ||
spec-suite.coffee | ||
time-reporter.coffee |