• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TryGhost / Ghost-Admin / 2220
70%

Build:
DEFAULT BRANCH: master
Ran 25 Apr 2017 10:38AM UTC
Jobs 1
Files 383
Run time 21s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2220

push

travis-ci

kevinansfield
🐛 fix editor cursor scrolling (#672)

no issue

When calculating if the editor should scroll to keep the cursor on screen upon selection change the editor would appear to scroll to random locations.

The issue stemmed from the fact that the getPositionFromRange method took into account the scroll offset when figuring out the pixel position of a range. So, if the editor was vertically scrolled the scrollTop was added to the cursor position which the editor would assume meant that the cursor was offscreen when it wasn't.

This fix creates a new method getPositionOnScreenFromRange which finds the position of an element on screen and ignores the scroll offset.

1379 of 2173 branches covered (63.46%)

3342 of 4555 relevant lines covered (73.37%)

48.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2220.1 25 Apr 2017 10:38AM UTC 0
73.37
Travis Job 2220.1
Source Files on build 2220
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2220
  • 50cfc8ee on github
  • Prev Build on master (#2219)
  • Next Build on master (#2222)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc