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

Scroll down/up scrolls down twice #4619

Closed
liavassif opened this issue Jun 19, 2017 · 2 comments
Closed

Scroll down/up scrolls down twice #4619

liavassif opened this issue Jun 19, 2017 · 2 comments
Assignees
Milestone

Comments

@liavassif
Copy link

liavassif commented Jun 19, 2017

Description of your problem

Scroll down/up performs two consecutive calls to scroll instead of a single one

What steps will reproduce the problem?

  1. Place the cursor on the first line of a file in the editor pane
  2. Press scroll down (PageDown key)

What is the expected output? What do you see instead?
The cursor should be at line 26 (assuming the scroll is 25 lines), but instead it is at line 52

Please provide any additional information below

Versions and main components

  • Spyder Version:3.2.0dev (3.x branch) and 4.0.0dev (master)
  • Python Version:3.5.2
  • Qt Version:5.6.2
  • PyQt Version:5.6
  • Operating system:Linux

Dependencies

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

@rlaverde
Copy link
Member

rlaverde commented Jun 20, 2017

This is caused by this change 738f8e1#diff-b19a1c3b49c9057f7bf2edae2a53747dR2710 keyPressEvent is called twice (at keyPressEvent and also at keyReleaseEvent)

Should it be super(CodeEditor, self).KeyReleaseEvent(event)?

@goanpeca

@ccordoba12 ccordoba12 modified the milestones: v3.2, v3.2.1 Jun 20, 2017
@ccordoba12
Copy link
Member

@rlaverde, please work on this one.

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

No branches or pull requests

3 participants