Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor scrollbar wildly jittering on drag. #23314

Closed
ghost opened this issue Oct 26, 2018 · 6 comments · Fixed by #23943
Closed

Editor scrollbar wildly jittering on drag. #23314

ghost opened this issue Oct 26, 2018 · 6 comments · Fixed by #23943

Comments

@ghost
Copy link

ghost commented Oct 26, 2018

Win10 64bit commit: eeee471 + #23059

I puzzled over this one for a bit, but I cannot reproduce it, and have only seen it once. It happened at least from returning focus to the editor from an outside window.

Anyone else run into this?

A video that shows the jittering better: https://streamable.com/7vvjs

godot_scroll_jitter

@spongeboburu
Copy link

I can confirm as this has happened to me as well. However, in my case I couldn't make it stop jittering so a restart was needed since closing the text editor was not enough. It was also isolated to that one file, opening the text editor for another file it was fine.

@ghost
Copy link
Author

ghost commented Oct 28, 2018

Yeah I also had to restart to free it up.

@ghost
Copy link

ghost commented Nov 19, 2018

5738c92

I've encountered this issue as well, trying to select some code but missing and clicking into the scrollbar instead.

  1. Left click and hold in the empty space above or below the scroll bar
  2. Drag the mouse away
  3. The scrollbar will now not want to move to any other position but the last position it scrolled to.

Middle-mouse scrolling now does not work. You can drag the scrollbar, but it will jitter, and try to return to that one location. You can continue to move the scrollbar up or down by clicking in the empty space above or below it, but the behavior otherwise will continue.

To fix it, you can continue to click in the empty space above the scroll bar until it reaches the top, where it will then return to normal--or restart the editor.

@bojidar-bg
Copy link
Contributor

bojidar-bg commented Nov 20, 2018

Could confirm with the reproduction steps outlined in the above comment (2d6b994).

Edit:
Could narrow down to TextEdit with smoothing enabled.
Reproduction:

  1. Create TextEdit node
  2. Enable Smooth Scrolling in the inspector
  3. Follow @somnivore's steps above.
  4. Observe that disabling smooth scrolling causes the issue to not appear any more. Other options don't seem to affect it.

@bojidar-bg bojidar-bg added this to the 3.1 milestone Nov 20, 2018
@bojidar-bg
Copy link
Contributor

Tested with a142c9a (original smooth scrolling commit), couldn't reproduce.
So, I ran a bisect:

git bisect start
# bad: [2d6b994e476f00e5725117501f6fc006eadd0d30] Massive speed up on deleting nodes, fixes #18673 Also makes the editor exit faster
git bisect bad 2d6b994e476f00e5725117501f6fc006eadd0d30
# good: [a142c9a2f0be65218058c35b94202fbc4fd2c84c] Added smooth scrolling to TextEdit
git bisect good a142c9a2f0be65218058c35b94202fbc4fd2c84c
# good: [e3eb6869068edb2617a311f89e93b92a9aa5b905] Tree now uses UI actions instead of keys
git bisect good e3eb6869068edb2617a311f89e93b92a9aa5b905
# good: [274d1bc683bbd7f31b323f217bbe4512a8c275a1] Merge pull request #20233 from willnationsdev/gsc-editor
git bisect good 274d1bc683bbd7f31b323f217bbe4512a8c275a1
# good: [726e836cd9b6eee5e060b694e076535ad5b5a7ae] GDScript: Fix infinite loop in autocomplete
git bisect good 726e836cd9b6eee5e060b694e076535ad5b5a7ae
# bad: [43c28681add010b5daccbcfde3e3065d7be7b52c] Merge pull request #22939 from merumelu/tileset-add-texture-fix
git bisect bad 43c28681add010b5daccbcfde3e3065d7be7b52c
# bad: [22c3995a04c59a24c109db029f2492253c494d88] Merge pull request #22576 from DualMatrix/multi_edit_exit
git bisect bad 22c3995a04c59a24c109db029f2492253c494d88
# good: [aaef640b8c3e7c7c49aae11a1c8c9e606223fefd] Merge pull request #22383 from Faless/ws_close
git bisect good aaef640b8c3e7c7c49aae11a1c8c9e606223fefd
# bad: [d8af4f9e02277194ca1bb053447a25bfed2b6524] Merge pull request #22506 from akien-mga/thirdparty-no-warnings
git bisect bad d8af4f9e02277194ca1bb053447a25bfed2b6524
# good: [bca2d3ad40da1b5bea2e55a8640615d21736b175] Fix invalid comparison warnings: [-Wbool-compare] and [-Wenum-compare]
git bisect good bca2d3ad40da1b5bea2e55a8640615d21736b175
# good: [1c60465c5958446a2daccc54a1c58c3dee9b21a3] Merge pull request #22422 from Faless/server_dummy_vr
git bisect good 1c60465c5958446a2daccc54a1c58c3dee9b21a3
# bad: [d55491a7b8093bfadd257bd9df6a04f76e05d8ca] Merge pull request #22407 from DualMatrix/step_int
git bisect bad d55491a7b8093bfadd257bd9df6a04f76e05d8ca
# good: [f87fb2c795f93fa4171c8ab0b6a5af49b013dcd7] Merge pull request #22413 from lupoDharkael/array-mesh-docs
git bisect good f87fb2c795f93fa4171c8ab0b6a5af49b013dcd7
# bad: [a5017f925f32c0bf8730f50c08ffc8d4ec1b7794] Merge pull request #22405 from DualMatrix/better_step
git bisect bad a5017f925f32c0bf8730f50c08ffc8d4ec1b7794
# bad: [98395f652c285a4c661a634a98fb9d63345c8a7b] Fixed step value not being respected for ranges in some cases.
git bisect bad 98395f652c285a4c661a634a98fb9d63345c8a7b
# first bad commit: [98395f652c285a4c661a634a98fb9d63345c8a7b] Fixed step value not being respected for ranges in some cases.

Seems like #22405 is the culprit. CC @dualmatrix.
Also, CC @poke1024 and @Paulb23, since they worked on smooth scrolling in the past.

@Piet-G
Copy link
Contributor

Piet-G commented Nov 20, 2018

I assume that somewhere a range with a step is being used and now it tries to snap to the step which it wouldn't do previously. Should be a simple fix by just removing the step from the range thats the culprit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants