Web: fix crash InnerSizeWriter::request_inner_size() (#3727)
This commit is contained in:
parent
39bc139500
commit
3b4e064a07
3 changed files with 26 additions and 28 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue