Opened 8 years ago

Closed 3 years ago

#1600 closed defect (fixed)

auto scroll on enter

Reported by: guest Owned by:
Priority: normal Milestone:
Component: User Interface Version: trunk
Severity: major Keywords: enter, auto, scroll, new line
Cc: ejucovy


Hello, I've found a bug in Xinha. This is how and what happens:
Go into HTML mode paste some text in, exit HTML mode click anywhere inside the text, and press enter.
What is expected to happen: move the text following the cursor into a new line.
What happens: it moves the text following the cursor into a new line and scrolls down until the new line is the first line in the editor.

This is very disturbing when you try to write something.
This happens on all major browsers: Chrome, Firefox and Opera.

Also on Opera, when I do this xinha also adds from 3 to 7 or more new lines before the newly created line, just like I would press enter multiple times.(I'm not holding the enter key pressed for to long) This happens just in Opera.

  • by new line I mean a new set of <p> tags

Change History (3)

comment:1 Changed 8 years ago by guest

  • Keywords enter auto scroll new line added

comment:2 Changed 8 years ago by ejucovy

  • Cc ejucovy added

comment:3 Changed 3 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

[1340] improves this behaviour by only scrolling when the cursor is nearly or outside the viewport, in which case it will scroll the viewport to have the cursor nearer the top but not right AT the top

Don't know why I've never come across this behaviour before, maybe I just mostly write smaller texts or use full screen so it can't be scrolling anyway.

Note: See TracTickets for help on using tickets.