Skip to content

Commit

Permalink
Try adding PointerInterceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jul 28, 2021
1 parent b3c055f commit 2103e29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ui/invoice/edit/invoice_edit_desktop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import 'package:invoiceninja_flutter/utils/completers.dart';
import 'package:invoiceninja_flutter/utils/formatting.dart';
import 'package:invoiceninja_flutter/utils/icons.dart';
import 'package:invoiceninja_flutter/utils/localization.dart';
import 'package:pointer_interceptor/pointer_interceptor.dart';

class InvoiceEditDesktop extends StatefulWidget {
const InvoiceEditDesktop({
Expand Down Expand Up @@ -965,7 +966,9 @@ class __PdfPreviewState extends State<_PdfPreview> {
kIsWeb
? Padding(
padding: const EdgeInsets.only(right: 11),
child: HtmlElementView(viewType: _pdfString),
child: PointerInterceptor(
child: HtmlElementView(viewType: _pdfString),
),
)
: Padding(
padding: const EdgeInsets.all(8),
Expand Down

0 comments on commit 2103e29

Please sign in to comment.