From 4245363cf4b2c123939f2f8cce5fd6b1e3b8a85b Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 3 Aug 2011 18:18:41 -0500 Subject: [PATCH] Add a viewport example/test. Tested with an iPad 2. This example shows a 400x200 viewport of an 800x400 display. It tries to be intelligent about how much it redraws. It copies what it can, and then when the user releases the mouse, it redraws the "dirty" areas that were newly revealed. --- tests/viewport.html | 244 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 244 insertions(+) create mode 100644 tests/viewport.html diff --git a/tests/viewport.html b/tests/viewport.html new file mode 100644 index 00000000..948d1864 --- /dev/null +++ b/tests/viewport.html @@ -0,0 +1,244 @@ + + + Viewport Test + +

+ + Canvas: + +
+ + Canvas not supported. + + +
+ Results:
+ + + + + + + + + + +