File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,10 @@ pub(crate) fn handle_pointermove<F: FnMut(DomEvent)>(
240240 . extend_selection_to_point ( x as f32 , y as f32 ) ;
241241
242242 changed = true ;
243- } else if buttons != MouseEventButtons :: None && doc. extend_text_selection_to_point ( x, y) {
243+ } else if event. is_mouse ( )
244+ && buttons != MouseEventButtons :: None
245+ && doc. extend_text_selection_to_point ( x, y)
246+ {
244247 changed = true ;
245248 }
246249
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ pub(crate) fn pointer_source_to_blitz(source: &PointerSource) -> BlitzPointerId
7171 }
7272
7373 // TODO: TabletTool and Unknown events
74- PointerSource :: TabletTool { .. } => BlitzPointerId :: Mouse ,
74+ PointerSource :: TabletTool { .. } => BlitzPointerId :: Pen ,
7575 PointerSource :: Unknown => BlitzPointerId :: Mouse ,
7676 }
7777}
Original file line number Diff line number Diff line change @@ -445,6 +445,10 @@ impl BlitzPointerEvent {
445445 matches ! ( self . id, BlitzPointerId :: Mouse )
446446 }
447447 #[ inline( always) ]
448+ pub fn is_pen ( & self ) -> bool {
449+ matches ! ( self . id, BlitzPointerId :: Pen )
450+ }
451+ #[ inline( always) ]
448452 pub fn is_finger ( & self ) -> bool {
449453 matches ! ( self . id, BlitzPointerId :: Finger ( _) )
450454 }
You can’t perform that action at this time.
0 commit comments