MCPcopy Create free account
hub / github.com/angular-rust/ux-components / on_resize_up

Method on_resize_up

src/elements/window.rs:198–211  ·  view source on GitHub ↗
(&self, e: &mut MouseEvent, _: f32)

Source from the content-addressed store, hash-verified

196 }
197
198 fn on_resize_up(&self, e: &mut MouseEvent, _: f32) {
199 if !self.resizable {
200 return;
201 }
202
203 if self.collapsed {
204 return;
205 }
206
207 self.state.borrow_mut().resizing = false;
208 if let Some(handle) = self.resize_handle.as_ref() {
209 handle.uncapture()
210 }
211 }
212
213 fn on_resize_down(&mut self, e: &mut MouseEvent, _: f32) {
214 if !self.resizable {

Callers

nothing calls this directly

Calls 2

uncaptureMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected