We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b37dd commit c7478b1Copy full SHA for c7478b1
1 file changed
webgpu/canvas.py
@@ -43,6 +43,7 @@ def f():
43
44
debounced.timer = None
45
debounced.t_last = None
46
+ debounced._original = func
47
return debounced
48
49
if callable(arg):
@@ -170,7 +171,7 @@ def on_intersection(observer_entry, args):
170
171
func(html_canvas)
172
173
self.width = self.height = 0 # force resize
- self.resize()
174
+ self.resize._original(self)
175
176
def on_resize(self, func: Callable):
177
self._on_resize_callbacks.append(func)
0 commit comments