Liking cljdoc? Tell your friends :D

web.event.MouseEvent

The MouseEvent interface represents events that occur due to user interacting with a pointing device (such as a mouse). Common using this interface include click, dblclick, mouseup, mousedown.

The MouseEvent interface represents events that occur due to
user interacting with a pointing device (such as a mouse). Common
using this interface include click, dblclick, mouseup, mousedown.
raw docstring

alt-keycljs

(alt-key this)

Property.

[Read Only]

The MouseEvent.altKey read-only property is a js.Boolean that whether the alt key was pressed or not when a given mouse event

var altKeyPressed = instanceOfMouseEvent.altKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/altKey

Property.

[Read Only]

The MouseEvent.altKey read-only property is a `js.Boolean` that
whether the alt key was pressed or not when a given mouse event

`var altKeyPressed = instanceOfMouseEvent.altKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/altKey`
sourceraw docstring

buttoncljs

(button this)

Property.

[Read Only]

The MouseEvent.button read-only property indicates which button pressed on the mouse to trigger the event.

var buttonPressed = instanceOfMouseEvent.button

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button

Property.

[Read Only]

The MouseEvent.button read-only property indicates which button
pressed on the mouse to trigger the event.

`var buttonPressed = instanceOfMouseEvent.button`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button`
sourceraw docstring

buttonscljs

(buttons this)

Property.

[Read Only]

The MouseEvent.buttons read-only property indicates which buttons pressed on the mouse (or other input device) when a mouse event triggered.

var buttonsPressed = instanceOfMouseEvent.buttons

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons

Property.

[Read Only]

The MouseEvent.buttons read-only property indicates which buttons
pressed on the mouse (or other input device) when a mouse event
triggered.

`var buttonsPressed = instanceOfMouseEvent.buttons`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons`
sourceraw docstring

client-xcljs

(client-x this)

Property.

[Read Only]

The clientX read-only property of the web.event.MouseEvent provides the horizontal coordinate within the application's client at which the event occurred (as opposed to the coordinate within page).

var x = instanceOfMouseEvent.clientX

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX

Property.

[Read Only]

The clientX read-only property of the `web.event.MouseEvent`
provides the horizontal coordinate within the application's client
at which the event occurred (as opposed to the coordinate within
page).

`var x = instanceOfMouseEvent.clientX`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX`
sourceraw docstring

client-ycljs

(client-y this)

Property.

[Read Only]

The clientY read-only property of the web.event.MouseEvent provides the vertical coordinate within the application's client at which the event occurred (as opposed to the coordinate within page).

var y = instanceOfMouseEvent.clientY

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY

Property.

[Read Only]

The clientY read-only property of the `web.event.MouseEvent`
provides the vertical coordinate within the application's client
at which the event occurred (as opposed to the coordinate within
page).

`var y = instanceOfMouseEvent.clientY`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY`
sourceraw docstring

constructorcljs

(constructor & args)

Constructor.

The MouseEvent() constructor creates a new web.event.MouseEvent.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent

Constructor.

The MouseEvent() constructor creates a new `web.event.MouseEvent`.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent`
sourceraw docstring

ctrl-keycljs

(ctrl-key this)

Property.

[Read Only]

The MouseEvent.ctrlKey read-only property is a js.Boolean that whether the ctrl key was pressed or not when a given mouse event

var ctrlKeyPressed = instanceOfMouseEvent.ctrlKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey

Property.

[Read Only]

The MouseEvent.ctrlKey read-only property is a `js.Boolean` that
whether the ctrl key was pressed or not when a given mouse event

`var ctrlKeyPressed = instanceOfMouseEvent.ctrlKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey`
sourceraw docstring

get-modifier-statecljs

(get-modifier-state this key-arg)

Method.

The MouseEvent.getModifierState() method returns the current of the specified modifier key: true if the modifier is active the modifier key is pressed or locked), otherwise, false.

var active =​ event.getModifierState(keyArg);

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/getModifierState

Method.

The MouseEvent.getModifierState() method returns the current
of the specified modifier key: true if the modifier is active
the modifier key is pressed or locked), otherwise, false.

`var active =​ event.getModifierState(keyArg);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/getModifierState`
sourceraw docstring

init-mouse-eventcljs

(init-mouse-event this & args)

Method.

[Deprecated]

The MouseEvent.initMouseEvent() method initializes the value a mouse event once it's been created (normally using the Document.createEvent()

event.initMouseEvent(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget);

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent

Method.

[Deprecated]

The MouseEvent.initMouseEvent() method initializes the value
a mouse event once it's been created (normally using the `Document.createEvent()`

`event.initMouseEvent(type, canBubble, cancelable, view,
detail, screenX, screenY, clientX, clientY,
ctrlKey, altKey, shiftKey, metaKey,
button, relatedTarget);`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent`
sourceraw docstring

meta-keycljs

(meta-key this)

Property.

[Read Only]

The MouseEvent.metaKey read-only property is a js.Boolean that whether the meta key was pressed or not when a given mouse event

var metaKeyPressed = instanceOfMouseEvent.metaKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey

Property.

[Read Only]

The MouseEvent.metaKey read-only property is a `js.Boolean` that
whether the meta key was pressed or not when a given mouse event

`var metaKeyPressed = instanceOfMouseEvent.metaKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey`
sourceraw docstring

movement-xcljs

(movement-x this)

Property.

[Read Only]

The movementX read-only property of the web.event.MouseEvent provides the difference in the X coordinate of the mouse pointer the given event and the previous mousemove event. In other words, value of the property is computed like this: currentEvent.movementX currentEvent.screenX - previousEvent.screenX.

var xShift = instanceOfMouseEvent.movementX;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX

Property.

[Read Only]

The movementX read-only property of the `web.event.MouseEvent`
provides the difference in the X coordinate of the mouse pointer
the given event and the previous mousemove event. In other words,
value of the property is computed like this: currentEvent.movementX
currentEvent.screenX - previousEvent.screenX.

`var xShift = instanceOfMouseEvent.movementX;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX`
sourceraw docstring

movement-ycljs

(movement-y this)

Property.

[Read Only]

The movementY read-only property of the web.event.MouseEvent provides the difference in the Y coordinate of the mouse pointer the given event and the previous mousemove event. In other words, value of the property is computed like this: currentEvent.movementY currentEvent.screenY - previousEvent.screenY.

var yShift = instanceOfMouseEvent.movementY;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY

Property.

[Read Only]

The movementY read-only property of the `web.event.MouseEvent`
provides the difference in the Y coordinate of the mouse pointer
the given event and the previous mousemove event. In other words,
value of the property is computed like this: currentEvent.movementY
currentEvent.screenY - previousEvent.screenY.

`var yShift = instanceOfMouseEvent.movementY;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY`
sourceraw docstring

moz-input-sourcecljs

(moz-input-source this)

Property.

[Read Only] [Non Standard]

The MouseEvent.mozInputSource read-only property on web.event.MouseEvent information indicating the type of device that generated the This lets you, for example, determine whether a mouse event was by an actual mouse or by a touch event (which might affect the of accuracy with which you interpret the coordinates associated the event).

var source = instanceOfMouseEvent.mozInputSource;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/mozInputSource

Property.

[Read Only]
[Non Standard]

The MouseEvent.mozInputSource read-only property on `web.event.MouseEvent`
information indicating the type of device that generated the
This lets you, for example, determine whether a mouse event was
by an actual mouse or by a touch event (which might affect the
of accuracy with which you interpret the coordinates associated
the event).

`var source = instanceOfMouseEvent.mozInputSource;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/mozInputSource`
sourceraw docstring

moz-pressurecljs

(moz-pressure this)

Property.

The amount of pressure applied to a touch or tablet device when the event; this value ranges between 0.0 (minimum pressure) and (maximum pressure). Instead of using this deprecated (and non-standard) you should instead use PointerEvent and look at its pressure

Property.

The amount of pressure applied to a touch or tablet device when
the event; this value ranges between 0.0 (minimum pressure) and
(maximum pressure). Instead of using this deprecated (and non-standard)
you should instead use PointerEvent and look at its pressure
sourceraw docstring

offset-xcljs

(offset-x this)

Property.

[Read Only] [Experimental]

The offsetX read-only property of the web.event.MouseEvent provides the offset in the X coordinate of the mouse pointer that event and the padding edge of the target node.

var xOffset = instanceOfMouseEvent.offsetX;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX

Property.

[Read Only]
[Experimental]

The offsetX read-only property of the `web.event.MouseEvent`
provides the offset in the X coordinate of the mouse pointer
that event and the padding edge of the target node.

`var xOffset = instanceOfMouseEvent.offsetX;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX`
sourceraw docstring

offset-ycljs

(offset-y this)

Property.

[Read Only] [Experimental]

The offsetY read-only property of the web.event.MouseEvent provides the offset in the Y coordinate of the mouse pointer that event and the padding edge of the target node.

var yOffset = instanceOfMouseEvent.offsetY;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY

Property.

[Read Only]
[Experimental]

The offsetY read-only property of the `web.event.MouseEvent`
provides the offset in the Y coordinate of the mouse pointer
that event and the padding edge of the target node.

`var yOffset = instanceOfMouseEvent.offsetY;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY`
sourceraw docstring

page-xcljs

(page-x this)

Property.

[Read Only]

The pageX read-only property of the web.event.MouseEvent interface the X (horizontal) coordinate (in pixels) at which the mouse clicked, relative to the left edge of the entire document.

var pageX = MouseEvent.pageX;

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX

Property.

[Read Only]

The pageX read-only property of the `web.event.MouseEvent` interface
the X (horizontal) coordinate (in pixels) at which the mouse
clicked, relative to the left edge of the entire document.

`var pageX = MouseEvent.pageX;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX`
sourceraw docstring

page-ycljs

(page-y this)

Property.

[Read Only]

The pageY read-only property of the web.event.MouseEvent interface the Y (vertical) coordinate in pixels of the event relative to whole document. This property takes into account any vertical of the page.

`var pos = event.pageY;

Originally, this property was defined as a long integer. The CSSOM View Module redefined it as a double float. See the Browser compatibility section for details.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY

Property.

[Read Only]

The pageY read-only property of the `web.event.MouseEvent` interface
the Y (vertical) coordinate in pixels of the event relative to
whole document. This property takes into account any vertical
of the page.

`var pos = event.pageY;

Originally, this property was defined as a long integer. The CSSOM View Module redefined it as a double float. See the Browser compatibility section for details.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY`
sourceraw docstring

regioncljs

(region this)

Property.

[Read Only]

The MouseEvent.region read-only property returns the id of the hit region affected by the event. If no hit region is affected, is returned.

var hitRegion = instanceOfMouseEvent.region

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/region

Property.

[Read Only]

The MouseEvent.region read-only property returns the id of the
hit region affected by the event. If no hit region is affected,
is returned.

`var hitRegion = instanceOfMouseEvent.region`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/region`
sourceraw docstring

(related-target this)

Property.

[Read Only]

The MouseEvent.relatedTarget read-only property is the secondary for the mouse event, if there is one. That is:

var target = instanceOfMouseEvent.relatedTarget

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget

Property.

[Read Only]

The MouseEvent.relatedTarget read-only property is the secondary
for the mouse event, if there is one. That is:

`var target = instanceOfMouseEvent.relatedTarget`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget`
sourceraw docstring

screen-xcljs

(screen-x this)

Property.

[Read Only]

The screenX read-only property of the web.event.MouseEvent provides the horizontal coordinate (offset) of the mouse pointer global (screen) coordinates.

var x = instanceOfMouseEvent.screenX

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX

Property.

[Read Only]

The screenX read-only property of the `web.event.MouseEvent`
provides the horizontal coordinate (offset) of the mouse pointer
global (screen) coordinates.

`var x = instanceOfMouseEvent.screenX`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX`
sourceraw docstring

screen-ycljs

(screen-y this)

Property.

[Read Only]

The screenY read-only property of the web.event.MouseEvent provides the vertical coordinate (offset) of the mouse pointer global (screen) coordinates.

var y = instanceOfMouseEvent.screenY

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY

Property.

[Read Only]

The screenY read-only property of the `web.event.MouseEvent`
provides the vertical coordinate (offset) of the mouse pointer
global (screen) coordinates.

`var y = instanceOfMouseEvent.screenY`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY`
sourceraw docstring

set-moz-pressure!cljs

(set-moz-pressure! this val)

Property.

The amount of pressure applied to a touch or tablet device when the event; this value ranges between 0.0 (minimum pressure) and (maximum pressure). Instead of using this deprecated (and non-standard) you should instead use PointerEvent and look at its pressure

Property.

The amount of pressure applied to a touch or tablet device when
the event; this value ranges between 0.0 (minimum pressure) and
(maximum pressure). Instead of using this deprecated (and non-standard)
you should instead use PointerEvent and look at its pressure
sourceraw docstring

set-webkit-force-at-force-mouse-down!cljs

(set-webkit-force-at-force-mouse-down! this val)

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN is a proprietary, static numeric property whose value is the minimum force necessary a force click.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN is a proprietary,
static numeric property whose value is the minimum force necessary
a force click.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN`
sourceraw docstring

set-webkit-force-at-mouse-down!cljs

(set-webkit-force-at-mouse-down! this val)

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN is a proprietary, WebKit-specific, numeric property whose value is the minimum force necessary for normal click.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_MOUSE_DOWN

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN is a proprietary, WebKit-specific,
numeric property whose value is the minimum force necessary for
normal click.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_MOUSE_DOWN`
sourceraw docstring

shift-keycljs

(shift-key this)

Property.

[Read Only]

The MouseEvent.shiftKey read-only property is a js.Boolean indicates whether the shift key was pressed or not when a given event occurs.

var shiftKeyPressed = instanceOfMouseEvent.shiftKey

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey

Property.

[Read Only]

The MouseEvent.shiftKey read-only property is a `js.Boolean`
indicates whether the shift key was pressed or not when a given
event occurs.

`var shiftKeyPressed = instanceOfMouseEvent.shiftKey`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey`
sourceraw docstring

webkit-forcecljs

(webkit-force this)

Property.

[Read Only] [Non Standard]

MouseEvent.webkitForce is a proprietary, WebKit-specific numeric whose value represents the amount of pressure that is being applied the touchpad or touchscreen.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/webkitForce

Property.

[Read Only]
[Non Standard]

MouseEvent.webkitForce is a proprietary, WebKit-specific numeric
whose value represents the amount of pressure that is being applied
the touchpad or touchscreen.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/webkitForce`
sourceraw docstring

webkit-force-at-force-mouse-downcljs

(webkit-force-at-force-mouse-down this)

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN is a proprietary, static numeric property whose value is the minimum force necessary a force click.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN is a proprietary,
static numeric property whose value is the minimum force necessary
a force click.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN`
sourceraw docstring

webkit-force-at-mouse-downcljs

(webkit-force-at-mouse-down this)

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN is a proprietary, WebKit-specific, numeric property whose value is the minimum force necessary for normal click.

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_MOUSE_DOWN

Property.

[Non Standard]

MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN is a proprietary, WebKit-specific,
numeric property whose value is the minimum force necessary for
normal click.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/WEBKIT_FORCE_AT_MOUSE_DOWN`
sourceraw docstring

whichcljs

(which this)

Property.

[Read Only] [Non Standard]

The MouseEvent.which read-only property indicates which button pressed on the mouse to trigger the event. The standard alternatives this property are MouseEvent.button and MouseEvent.buttons.

var buttonPressed = instanceOfMouseEvent.which

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which

Property.

[Read Only]
[Non Standard]

The MouseEvent.which read-only property indicates which button
pressed on the mouse to trigger the event. The standard alternatives
this property are `MouseEvent.button` and `MouseEvent.buttons`.

`var buttonPressed = instanceOfMouseEvent.which`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which`
sourceraw docstring

xcljs

(x this)

Property.

[Read Only] [Experimental]

The MouseEvent.x property is an alias for the MouseEvent.clientX

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/x

Property.

[Read Only]
[Experimental]

The MouseEvent.x property is an alias for the `MouseEvent.clientX`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/x`
sourceraw docstring

ycljs

(y this)

Property.

[Read Only] [Experimental]

The MouseEvent.y property is an alias for the MouseEvent.clientY

See also: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/y

Property.

[Read Only]
[Experimental]

The MouseEvent.y property is an alias for the `MouseEvent.clientY`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/y`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close