-
Notifications
You must be signed in to change notification settings - Fork 326
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
Fix leaks after calling wasm drop #7038
Conversation
…dering-after-drop-6505 Merge remote-tracking branch 'origin/develop' into wip/procrat/no-rendering-after-drop-6505
…dering-after-drop-6505
…dering-after-drop-6505
options | ||
// | ||
// 2. We want to prevent default action on wheel events, thus listener cannot be passive. | ||
web::EventListenerHandleOptions::new().passive() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be not_passive()
?
lib/rust/frp/src/io/js.rs
Outdated
// We want to prevent default action on wheel events, thus listener cannot be passive. | ||
options.passive(false); | ||
options | ||
enso_web::EventListenerHandleOptions::new().passive() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not_passive
?
lib/rust/web/src/lib.rs
Outdated
pub fn passive(mut self) -> Self { | ||
self.passive = Some(true); | ||
self | ||
} | ||
|
||
pub fn not_passive(mut self) -> Self { | ||
self.passive = Some(false); | ||
self | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add here docs. It's not obvious what these do after reading the name if someone (like me) do not remember what the JS side does.
lib/rust/web/src/lib.rs
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too big spacing
…dering-after-drop-6505
QA: 🟢 |
Remove a leak detector added in #7038, that has a large (~10s) impact on startup performance. I missed the performance impact during QA, but noticed it after merge.
Pull Request Description
This should finally fix #6505
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
[ ] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.Scala,
Java,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
./run ide build
.