moving: Grab use correct cursor
This commit is contained in:
parent
da59cbd768
commit
88d8972d34
2 changed files with 22 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ pub enum CursorShape {
|
|||
Default,
|
||||
ColResize,
|
||||
RowResize,
|
||||
Grab,
|
||||
}
|
||||
|
||||
impl ToString for CursorShape {
|
||||
|
|
@ -50,6 +51,7 @@ impl ToString for CursorShape {
|
|||
CursorShape::Default => "default",
|
||||
CursorShape::ColResize => "col-resize",
|
||||
CursorShape::RowResize => "row-resize",
|
||||
CursorShape::Grab => "grabbing",
|
||||
}
|
||||
.to_string()
|
||||
}
|
||||
|
|
@ -243,6 +245,10 @@ impl Default for CursorState {
|
|||
CursorShape::RowResize,
|
||||
Cursor::load(&theme, CursorShape::RowResize, size),
|
||||
);
|
||||
map.insert(
|
||||
CursorShape::Grab,
|
||||
Cursor::load(&theme, CursorShape::Grab, size),
|
||||
);
|
||||
map
|
||||
},
|
||||
current_image: RefCell::new(None),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue