Skip to content

Commit

Permalink
fix gestures for the quiz's webview
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightDV committed Oct 12, 2022
1 parent 1d556c8 commit a373381
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/api/news.dart
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,14 @@ class JoinArticlesParts extends StatelessWidget {
initialUrl:
'https://www.riddle.com/view/${element['fields']['riddleId']}',
zoomEnabled: true,
gestureRecognizers: [
Factory<VerticalDragGestureRecognizer>(
() => VerticalDragGestureRecognizer()),
Factory<HorizontalDragGestureRecognizer>(
() => HorizontalDragGestureRecognizer()),
Factory<ScaleGestureRecognizer>(
() => ScaleGestureRecognizer()),
].toSet(),
),
),
);
Expand Down

0 comments on commit a373381

Please sign in to comment.