Skip to content

Commit

Permalink
Default to "pointer" cursor for links
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Nov 11, 2024
1 parent 9430af1 commit 3c531bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/blitz-dom/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,8 @@ impl Document {
// this will need to be more comprehensive in the future to handle line breaks, shaping, etc.
if node.is_text_node() {
CursorKind::Text
} else if node.is_link() {
CursorKind::Pointer
} else {
CursorKind::Auto
}
Expand Down

0 comments on commit 3c531bc

Please sign in to comment.