BertrandBev / code_field

A customizable code text field supporting syntax highlighting
https://bertrandbev.github.io/code_field/
MIT License
230 stars 61 forks source link

Scrolling bug while editing code in CodeField #76

Open george-maroun opened 1 year ago

george-maroun commented 1 year ago

Hi there,

I am experiencing a bug while editing code in a CodeField component on the client: if I scroll up while my cursor is in a code field, the entire window moves upwards when viewport goes past the cursor.

This is the error message that I got:

The following assertion was thrown while handling a pointer data packet: Assertion failed: file:///[path to file]/events.dart:1551:15 ../…/gestures/events.dart:1551 !identical(kind, PointerDeviceKind.trackpad) is not true

Additionally, I only witness this bug in production (after the app is built).

I wonder if this is related to #66

BertrandBev commented 1 year ago

Hi @george-maroun. Did you manage to find a fix?