Discussion:
[dart-misc] The which property in MouseEvent was removed in Dart 1.16? Why?
Tom
2016-04-27 09:43:54 UTC
Permalink
The removal of the which property from MouseEvent is on purpose or a bug?

The button and buttons properties are less consistent across different
events. For example, in the click event, they are both zero, and in the
mouse move event, the button property can't really tell if left-button is
pressed. With the which property, it is easier to have a more generic event
handler.

Regards,
Tom
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
'Alan Knight' via Dart Misc
2016-04-27 18:01:09 UTC
Permalink
Hmm, I'm not sure. It still seems to be in the Chrome IDL and to exist in
current Chrome. +Terry Lucas <***@google.com>
Can you file a bug?
Post by Tom
The removal of the which property from MouseEvent is on purpose or a bug?
The button and buttons properties are less consistent across different
events. For example, in the click event, they are both zero, and in the
mouse move event, the button property can't really tell if left-button is
pressed. With the which property, it is easier to have a more generic event
handler.
Regards,
Tom
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Günter Zöchbauer
2016-04-28 09:57:59 UTC
Permalink
See also https://github.com/dart-lang/sdk/issues/26354
Post by 'Alan Knight' via Dart Misc
Hmm, I'm not sure. It still seems to be in the Chrome IDL and to exist in
current Chrome. +Terry Lucas <javascript:>
Can you file a bug?
Post by Tom
The removal of the which property from MouseEvent is on purpose or a bug?
The button and buttons properties are less consistent across different
events. For example, in the click event, they are both zero, and in the
mouse move event, the button property can't really tell if left-button is
pressed. With the which property, it is easier to have a more generic event
handler.
Regards,
Tom
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups
"Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an
--
For other discussions, see https://groups.google.com/a/dartlang.org/

For HOWTO questions, visit http://stackoverflow.com/tags/dart

To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
Loading...