Web: fix crash InnerSizeWriter::request_inner_size() (#3727)

This commit is contained in:
daxpedda 2024-06-12 00:22:03 +02:00 committed by GitHub
parent 39bc139500
commit 3b4e064a07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 28 deletions

View file

@ -427,8 +427,8 @@ impl Canvas {
pub(crate) fn on_resize_scale<S, R>(&mut self, scale_handler: S, size_handler: R)
where
S: 'static + FnMut(PhysicalSize<u32>, f64),
R: 'static + FnMut(PhysicalSize<u32>),
S: 'static + Fn(PhysicalSize<u32>, f64),
R: 'static + Fn(PhysicalSize<u32>),
{
self.on_resize_scale = Some(ResizeScaleHandle::new(
self.window().clone(),