Liking cljdoc? Tell your friends :D

web.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.

The MouseEvent.altKey read-only property is a web.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.

The MouseEvent.altKey read-only property is a `web.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.

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.

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.

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.

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.

The clientX read-only property of the web.MouseEvent interface the horizontal coordinate within the application's client area 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.

The clientX read-only property of the `web.MouseEvent` interface
the horizontal coordinate within the application's client area
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.

The clientY read-only property of the web.MouseEvent interface the vertical coordinate within the application's client area 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.

The clientY read-only property of the `web.MouseEvent` interface
the vertical coordinate within the application's client area
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.

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

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

Constructor.

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

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

ctrl-keycljs

(ctrl-key this)

Property.

The MouseEvent.ctrlKey read-only property is a web.Boolean indicates whether the ctrl key was pressed or not when a given event occurs.

var ctrlKeyPressed = instanceOfMouseEvent.ctrlKey

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

Property.

The MouseEvent.ctrlKey read-only property is a `web.Boolean`
indicates whether the ctrl key was pressed or not when a given
event occurs.

`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.

The MouseEvent.initMouseEvent() method initializes the value a mouse event once it's been created (normally using the web.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.

The MouseEvent.initMouseEvent() method initializes the value
a mouse event once it's been created (normally using the `web.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.

The MouseEvent.metaKey read-only property is a web.Boolean indicates whether the meta key was pressed or not when a given event occurs.

var metaKeyPressed = instanceOfMouseEvent.metaKey

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

Property.

The MouseEvent.metaKey read-only property is a `web.Boolean`
indicates whether the meta key was pressed or not when a given
event occurs.

`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.

The movementX read-only property of the web.MouseEvent interface the difference in the X coordinate of the mouse pointer between 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.

The movementX read-only property of the `web.MouseEvent` interface
the difference in the X coordinate of the mouse pointer between
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.

The movementY read-only property of the web.MouseEvent interface the difference in the Y coordinate of the mouse pointer between 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.

The movementY read-only property of the `web.MouseEvent` interface
the difference in the Y coordinate of the mouse pointer between
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.

The MouseEvent.mozInputSource read-only property on web.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.

The MouseEvent.mozInputSource read-only property on `web.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

offset-xcljs

(offset-x this)

Property.

The offsetX read-only property of the web.MouseEvent interface the offset in the X coordinate of the mouse pointer between that 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.

The offsetX read-only property of the `web.MouseEvent` interface
the offset in the X coordinate of the mouse pointer between that
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.

The offsetY read-only property of the web.MouseEvent interface the offset in the Y coordinate of the mouse pointer between that 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.

The offsetY read-only property of the `web.MouseEvent` interface
the offset in the Y coordinate of the mouse pointer between that
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.

The pageX read-only property of the web.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.

The pageX read-only property of the `web.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.

The pageY read-only property of the web.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.

The pageY read-only property of the `web.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.

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.

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.

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.

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.

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

var x = instanceOfMouseEvent.screenX

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

Property.

The screenX read-only property of the `web.MouseEvent` interface
the horizontal coordinate (offset) of the mouse pointer in global
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.

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

var y = instanceOfMouseEvent.screenY

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

Property.

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

`var y = instanceOfMouseEvent.screenY`

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

set-webkit-force!cljs

(set-webkit-force! this val)

Property.

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.

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

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

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

Property.

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.

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.

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.

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

set-x!cljs

(set-x! this val)

Property.

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

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

Property.

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

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

set-y!cljs

(set-y! this val)

Property.

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

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

Property.

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

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

shift-keycljs

(shift-key this)

Property.

The MouseEvent.shiftKey read-only property is a web.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.

The MouseEvent.shiftKey read-only property is a `web.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.

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.

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.

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.

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.

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.

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.

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

var buttonPressed = instanceOfMouseEvent.which

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

Property.

The MouseEvent.which read-only property indicates which button
pressed on the mouse to trigger the event. The standard alternatives
this property are `web.MouseEvent.button` and `web.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.

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

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

Property.

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

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

ycljs

(y this)

Property.

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

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

Property.

The MouseEvent.y property is an alias for the `web.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