Skip to content

Fix point up event #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seungsoo47
Copy link
Contributor

When a PointUp(mouse up) event is sent, it must include information about the currently pressed button.

When a PointUp(mouse up) event is sent, it must include information about the currently
pressed button.
@JSUYA JSUYA self-requested a review June 13, 2025 00:52
@@ -277,10 +280,11 @@ void FlutterTizenView::OnPointerUp(double x,
int32_t device_id) {
if (button != 0) {
PointerState* state = GetOrCreatePointerState(device_kind, device_id);
state->buttons &= ~button;
FlutterPointerPhase phase = GetPointerPhaseFromState(state);
uint64_t clear_button_state = state->buttons & ~button;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please check this part? This code is identical to the implementation of window. The state of the buttons sent to flutter may be different from the existing one. Will it change the existing behavior or cause problems?
https://github.com/flutter/flutter/blob/master/engine/src/flutter/shell/platform/windows/flutter_windows_view.cc#L267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants