Skip to content

Fix cursor not updated after clicking internal link

updateCursor() was called by wheelEvent(), which made sense, because after the wheel event the page will have moved under the cursor.

With smooth scrolling, it makes less sense in wheelEvent(), because at that point scrolling is still in the future.

scrollContentsBy() appears to be called on every scroll step. (It is documented to be called at scrollbar value changes, so makes sense.)

This patch removes updateCursor() from wheelEvent(), but adds it to scrollContentsBy().

I did not check anything out with d->visibleItems, as was indicated it !176 (merged).

BUG: 421437

Steps to reproduce

  1. Open a document with many internal links
  2. Point the cursor on such a link
  3. Do a scroll click (like xdotool click 5)
  4. Page scrolls, but cursor stays a pointing hand.
  5. Click on a link and don’t move the cursor.
  6. Page scrolls, but cursor stays a pointing hand.
Edited by David Hurka

Merge request reports