0
votes

When compiling code with dart dart2js, and run in chrome or firefox

void main() {
  window.onMouseDown.listen((e) => print(e.clientX));
}

Result:

Uncaught TypeError: undefined is not a function

In Dartium there is no error.

1

1 Answers

1
votes

e.client.x should work.
e.clientX was available for a long time but deprecated. Maybe it was removed recently.