Fix for editor contents not moving with window

This commit is contained in:
nodeSpace 2022-04-15 01:22:37 -04:00 committed by GitHub
parent 45adcf7dc9
commit a473036037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ where
.selected_node
.map(|selected| selected == node_id)
.unwrap_or(false),
pan: self.pan_zoom.pan,
pan: self.pan_zoom.pan + editor_rect.min.to_vec2(),
}
.show(ui, &self.user_state);