if (e.Handled)
return;
+ double alignedPage = (int)(this.render.TextArea.Height / this.render.emSize.Height) * this.render.emSize.Height;
switch (e.KeyCode)
{
case Keys.Up:
this.Refresh();
break;
case Keys.PageUp:
- this.Controller.Scroll(ScrollDirection.Up, this.VScrollBar.LargeChange,e.Shift,true);
+ this.Controller.ScrollByPixel(ScrollDirection.Up, alignedPage,e.Shift,true);
this.Refresh();
break;
case Keys.PageDown:
- this.Controller.Scroll(ScrollDirection.Down, this.VScrollBar.LargeChange,e.Shift,true);
+ this.Controller.ScrollByPixel(ScrollDirection.Down, alignedPage, e.Shift, true);
this.Refresh();
break;
case Keys.Insert: