/// Creates a new [`ClickDragHandler`] that disambiguates clicks vs. drags.
Creates a new [`ClickDragHandler`] that disambiguates clicks vs. drags.
Creates a new [ ` ClickDragHandler ` ] that disambiguates clicks vs . drags .
pub fn new(click_to_drag_threshold: f32) -> Rc<Self> {
        Rc::new(Self {
            state: RefCell::new(HandlerState::NoActiveGesture),
            entry_time: Cell::new(std::time::Instant::now()),
            event_count: Cell::new(0),
            click_to_drag_threshold,
        })
    }
pub fn new ( click_to_drag_threshold : f32 ) -> Rc < Self > { Rc :: new ( Self { state : RefCell :: new ( HandlerState :: NoActiveGesture ) , entry_time : Cell :: new ( std :: time :: Instant :: now ( ) ) , event_count : Cell :: new ( 0 ) , click_to_drag_threshold , } ) }
Creates a new [`ClickDragHandler`] that disambiguates clicks vs. drags.
Creates a new [ ` ClickDragHandler ` ] that disambiguates clicks vs . drags .
click_to_drag_threshold
f32