Skip to content

Commit c1f69b1

Browse files
committed
blitz-research#490 : Fix for HtmlView being slow with large pages
1 parent 345f76e commit c1f69b1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

modules/mojox/htmlview.monkey2

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ Class HtmlView Extends ScrollableView
124124
If Not _document Return
125125

126126
Local clip:litehtml.position
127-
128-
clip.x=canvas.Scissor.X
129-
clip.y=canvas.Scissor.Y
130-
clip.width=canvas.Scissor.Width
131-
clip.height=canvas.Scissor.Height
127+
128+
clip.x=VisibleRect.X ' Draw only visible rect, not the
129+
clip.y=VisibleRect.Y ' whole virtual page.
130+
clip.width=VisibleRect.Width ' *Fixes* slow scrolling with large pages.
131+
clip.height=VisibleRect.Height '
132132

133133
_document.draw( canvas,0,0,Varptr clip )
134134
End

0 commit comments

Comments
 (0)