Open juliangilbey opened 2 years ago
Hi @juliangilbey thanks for the feedback! So what you are experiencing is a reset in the scrollbar position to the place where the cursor in the Editor is placed? And this happens just sometimes when you change the focus from Spyder to other application and back again to Spyder, right?
Something like this?:
To do this, after I give again the focus to Spyder, I clicked my spacebar but maybe in your case some other input source acts in the application focus change trying to input something causing the focus to be restore to the Editor cursor position?
Any other info in order to better understand what is happening here is greatly appreciated!
Hi @dalthviz, I'm not sure I fully understand what you have done. I just reproduced the behaviour as follows and managed to capture the issue in a screencast! (Took lots of attempts before it actually happened, mind you.) Here's what I did, as captured in the attached screencast:
I hope this helps explain what I'm experiencing.
Thanks for the new info @juliangilbey ! Then I think Spyder is detecting the Alt
keystroke (maybe also other key modifiers?) and then because of that putting the focus on the cursor Editor. In my example, I tried to replicate the scroll jump by pressing my keyboard spacebar. So I guess the problem is that this scroll jump behavior is happening by pressing not only keys that input things in the Edior (like spacebar, letters or numbers) but also keys like Alt
We will check it in a future release 👍🏼
@juliangilbey, I was reviewing this bug and I can't reproduce it with the latest 5.x
. Could you check again by running Spyder from a git clone and let us know if the problem persists for you?
Hi @ccordoba12, I'll happily do that, but it may take a little while; Debian's introduced Python 3.11 which is causing me no end of trouble right now....
Ok, no problem, there's no rush because this is not a critical issue. Moving it to 5.4.2 then.
I just checked with 5.4.2 - I still observe this behaviour.
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Sometimes, in the Editor Window, I scroll a file I am editing to see another part of the file using the scroll bar (and the cursor retains its location in the file). I then change focus to another window on my screen (for example to an xterm window or to a web browser). Often, but not every time, at the point when Spyder loses the focus, in the Editor Window, the file jumps back to the last place I had my cursor (completely undoing the effect of my scrolling). (I hope that makes some sense!)
I cannot find a way of reliably reproducing this behaviour, unfortunately; it happens sporadically. It occurs (sporadically) even when I remove the Spyder preferences entirely before starting Spyder as if it's a clean install.
Versions
Dependencies