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.
sometimes, after opening a source file, I use the mouse wheel and scroll down. Suddenly the file "resets" and I'm being "thrown" to the top (as if the file was updated and reset or something).
This happens whether the mouse wheel is used or if I just use the scroll bar in the editor window. After scrolling up or down in the file the code will jump back to the cursor for some unknown reason. There was a similar bug before 3.2 came out.
Hi, I have one realy reproducible case (build 200201020331): 1. When some line, visibly longer than any previously shown (+ maybe some other conditions, I am not sure) is shown, the editor is scrolled to cursor. 2. The way of scrolling is by using arrows on scroll bar. The shortcut has the same Ctrl-Down, Ctrl-Up does the same (I think they in fact works via arrows on scrollbar). And, I think that mousewheel uses these shortcuts. I am attaching example file. There are two "lines longer than any previous", one has character length maximal (of the file), second has character length smaller, but it's visible length is higher. Please, when you will be trying this, close the editor and open the file. When you will once try it, you will need to close the editor (or file), to reproduce the problem. I have never seen this when scrolling via already showed parts of file, please, can you confirm, that anybody saw the "jumping" when scrolling via alread seen part of the code?
Created attachment 3949 [details] Test sample.
this happens as well when viewing xml files and I'm not using a mouse wheel only click drag on scroll bar
Opened a new file with cursor at the 1st line. Scroll down slowly using the scroll wheel. As soon as a line that crosses my "Text Limit Line" comes into view the file jumps back to the cursor line (line1). That being the longest line in the file I could then scroll up and down to my hearts content with no further problems on that file...
Fixed in BaseTextUI and BaseCaret.
Resolved for 3.3.x or earlier, no new info since then -> closing.
It happens in any XML file that requires scrolling with Code Folding turned on (which is default) 1) Type few letters and scroll either using mouse wheel or scrollbar, so that edited row isn't visible. 2) Wait a second 3) Screens jumps back to edited row
*** This bug has been marked as a duplicate of bug 196236 ***