| Index: samples/swipe/web/swipe.dart
|
| diff --git a/samples/swipe/web/swipe.dart b/samples/swipe/web/swipe.dart
|
| index 2f75b7a6c32afbd6d7b978bb524136d40958c3c4..5066e5418d27a0227f28394311e38ae4ff59315d 100644
|
| --- a/samples/swipe/web/swipe.dart
|
| +++ b/samples/swipe/web/swipe.dart
|
| @@ -28,7 +28,7 @@ void main() {
|
| event.preventDefault();
|
|
|
| if (event.touches.length > 0) {
|
| - touchStartX = event.touches[0].pageX;
|
| + touchStartX = event.touches[0].page.x;
|
| }
|
| });
|
|
|
| @@ -36,7 +36,7 @@ void main() {
|
| event.preventDefault();
|
|
|
| if (touchStartX != null && event.touches.length > 0) {
|
| - int newTouchX = event.touches[0].pageX;
|
| + int newTouchX = event.touches[0].page.x;
|
|
|
| if (newTouchX > touchStartX) {
|
| spinFigure(target, (newTouchX - touchStartX) ~/ 20 + 1);
|
|
|