Highlighter area coordinates offset by scrolling
Environment
- Ubuntu 16.04
- Chromium 66
- adblockplusui c571bfe8
Steps to reproduce
- Run
npm run $ test.io-highlighter
to create smoke tests - Open smoke/io-highlighter.html
- Run
document.body.style.height = "200vh"
to make page scrollable - Scroll down a bit
- Click on either "Highlight" or "Hide"
- Draw an area on the canvas
Observed behavior
Area is drawn at an offset to the top of the cursor.
Expected behavior
Area is drawn where the cursor is.