viewportChange event question

Thanks Martin.

I looked at “change” and “scroll” events.

When I type (say “a”) in the editor, I get “change” event
When I scroll the editor (either through keyboard navigation or using scrollbar), I get “scroll” event.
When I type “a” and hit enter (say, the editor shows 1 to 20 lines, put cursor at line 10 and hit enter), I was expecting to get both “change” and “scroll” event. But I got the “change” event, but not the “scroll” event.

“scroll” event says “fires when the editor is scrolled”…if the scrollbar is changing & editor content is shifted down (when I hit return)…shouldn’t that trigger scroll event? May be I misunderstood the doc?

thanks,

–srini

1 Like