Skip to content
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

ability to know some action ended #28

Closed
sleepreading opened this issue Dec 24, 2021 · 3 comments
Closed

ability to know some action ended #28

sleepreading opened this issue Dec 24, 2021 · 3 comments

Comments

@sleepreading
Copy link

Sorry, my English skill is no good...
Currently, we don't know when the user operation ended:
If provide some extra parameters, it would be very helpful:

// when resizing the window, we will receive a bunch of resizing-message, but can't determine the last one(mouse left click up)
void onWindowResize(int state) {
  ....
}
void onWindowMove(int state) {
}
@lijy91
Copy link
Member

lijy91 commented Dec 24, 2021

The resized and moved events should be supported on macos and windows in the future

@sleepreading
Copy link
Author

The resized and moved events should be supported on macos and windows in the future

That would be Great!

lijy91 added a commit that referenced this issue Mar 19, 2022
lijy91 added a commit that referenced this issue Mar 19, 2022
@lijy91
Copy link
Member

lijy91 commented Mar 19, 2022

Supported, will be released in the next version. (linux is not supported)

  /// Emitted once when the window has finished being resized.
  ///
  /// @platforms macos,windows
  void onWindowResized() {}

  /// Emitted once when the window is moved to a new position.
  ///
  /// @platforms macos,windows
  void onWindowMoved() {}

@lijy91 lijy91 closed this as completed Mar 19, 2022
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

No branches or pull requests

2 participants