hgeometry:miso
Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellSafe-Inferred
LanguageGHC2021

HGeometry.Miso.Event.Extra

Description

Some extra event helpers, in partricular for touch and wheel events

Synopsis

Documentation

data WheelDirection Source #

Scroll-wheel direction

Constructors

Up 
Down 

onWheel :: (WheelDirection -> action) -> Attribute action Source #

on wheel events

data Button Source #

A type modelling the mouse buttons

Instances

Instances details
Show Button Source # 
Instance details

Defined in HGeometry.Miso.Event.Extra

Eq Button Source # 
Instance details

Defined in HGeometry.Miso.Event.Extra

Methods

(==) :: Button -> Button -> Bool #

(/=) :: Button -> Button -> Bool #

onClickWithButton :: (Button -> action) -> Attribute action Source #

get the mouse button that was clicked

onRightClick :: action -> Attribute action Source #

Get right clicks

onContextMenu :: action -> Attribute action Source #

prevent onContextMenu events

onTouchStart :: action -> Attribute action Source #

onTouchMove :: action -> Attribute action Source #

onTouchEnd :: action -> Attribute action Source #