This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269397 - Vertical scroll jumps back to cursor position
Summary: Vertical scroll jumps back to cursor position
Status: VERIFIED DUPLICATE of bug 269451
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.2
Hardware: PC All
: P1 normal with 5 votes (vote)
Assignee: Miloslav Metelka
Depends on: 269451
  Show dependency tree
Reported: 2016-12-19 16:19 UTC by twifty
Modified: 2017-10-31 19:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description twifty 2016-12-19 16:19:18 UTC
On the latest dev build, the editor has a nasty habit of resetting the scroll position so that the cursor is again visible.

It's a little difficult to reproduce as it only happens about 40% of the time. Click within the editor, then immediately start scrolling and keep scrolling. After a second or two, the view will jump back to the same scroll position as when the cursor was initially placed.

This happens within php, javascript and java files (basically all the file/project types I work with). Another thing I have noticed, placing the cursor, scrolling it out of view then leaving it (No user interaction), will do nothing, but as soon as you resume scrolling, after a second the same thing happens. Positioning the cursor, waiting a few seconds then scroll, has no visual difference, saying that though it's quite possible the scroll position was reset to the same value as the current.

To answer before I get asked, my mouse is not to blame.

It's almost as if a thread is launched when positioning the cursor then upon thread completion the view is updated with a stale position.
Comment 1 xupwup 2017-01-23 13:07:22 UTC
I have the same problem with 8.2, editing java files. The problem does not occur in the projects pane.
Comment 2 hasthisusernamebeentaken 2017-01-31 09:21:36 UTC
I also have this very annoying problem, seems more than 40% of the time though. Sometimes I can reproduce the effect at the same location but only if I move cursor to another line and back again before immediately start scrolling and I have to pull several times on the scroll wheel before this jump occurs. Unfortunately this makes it very hard to produce or describe some test case.

I have tried to toggle different settings in Options on/off but it seems to have no effect on this irritating bug. Before this test I have not changed anything under Tools-->Options from the installation defaults.

I have netbeans 8.2 installed on two computers running Windows 7 and 10 respectively and this problem has popped up on both. I have used netbeans on different computers for many years so this should not be due to any system settings or hardware.
Comment 3 Tuupertunut 2017-02-05 21:34:17 UTC
I can confirm this bug exists, starting with NetBeans 8.2.
Comment 4 cobratbq 2017-02-05 22:45:34 UTC
I'm not sure how this should work ... but I've changed the version to 8.2 to emphasize that this happens in a released version. Additionally I've set the operating system to 'All' as it seems to be an issue on multiple operating systems. I am personally running linux and in comments below it was confirmed to be a problem on Windows as well.
Comment 5 Milutin Kristofic 2017-02-07 13:23:00 UTC
Mila you will know better what to do with cursor and scrolling. Can you please look at this. Thank you.
Comment 6 jockel 2017-02-17 11:57:05 UTC
I'm running NetBeans 8.2 on two different computers. The bug started to occur with the last update of plugins (one or two months ago). On my other machine I didn't install any updates yet and there the bug does not occur. 
My co-workers confirmed that the erratic behaviour started after installing the plugin updates.
Comment 7 masadwin 2017-02-23 07:15:15 UTC
This happens to me as well. Did not happen in 8.1
Comment 8 xupwup 2017-02-25 13:12:23 UTC
See ticket
Comment 9 Tuupertunut 2017-02-25 15:06:31 UTC

*** This bug has been marked as a duplicate of bug 269451 ***
Comment 10 kplatt 2017-04-22 03:01:21 UTC
This happens to me in 8.2 (Build 201609300101).
Comment 11 thisguy 2017-05-09 15:12:51 UTC
Thanks for the Hint guys.
I have the same problem on an Apple MacBook Pro.
But, removing Plugin: RegistryServices(?), resolved the issue.

Comment 12 thisguy 2017-05-09 15:14:15 UTC
(In reply to thisguy from comment #11)
> Thanks for the Hint guys.
> I have the same problem on an Apple MacBook Pro.
> But, removing Plugin: RegistryServices(?), resolved the issue.
> Thanks!

Actual Name: "Service Registry" plugin.
Comment 13 benhaze 2017-05-19 10:23:16 UTC
Removing "Service Registry" plugin (deactivate + uninstall) does not work for me. Still having the same annoying problem...
Comment 14 dazed19 2017-06-23 13:27:32 UTC
As this is duplicate bug (#269451) just flagging that this is now fixed in 8.2 Patch 2 (available via Tools > Check For Updates)
Comment 15 spacebiker 2017-10-31 19:06:22 UTC
Same problema here, removing Services Registry plugin resolved the issue