bitovi / bitovi/syn

Some problems with events: click, mouseup, mousedown, and change for Chrome

Open
#76 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
441
Forks
254
PR merge metrics
No merged PRs in 30d

Description

Chrome 40.0.2214.111 m
### `click` event

`event.originalEvent.fromElement should = null vs <html>
event.screenX and event.screenY don't seem to match the values clientX/Y, pageX/Y, etc
### `mousedown` and `mouseup` events

`event.originalEvent.__proto__` should = KeyBoardEvent vs Event
`event.view` should = vs `undefined`

the following are missing entirely:
`event.originalEvent.detail`: 0
`event.originalEvent.keyIdentifier`: "U+xx58"
`event.originalEvent.keyLocation`: 0
`event.originalEvent.layerX`: 0
`event.originalEvent.layerY`: 0
`event.originalEvent.location`: 0
`event.originalEvent.pageX`: 0
`event.originalEvent.pageY`: 0
`event.originalEvent.repeat`: false
`event.originalEvent.view`: Window
### `change` event

I couldn't get the change event to fire at all. It doesn't fire if you type in an input field then click somewhere else:

syn.type($("#b"), "x")
syn.click($("#a"))

Even if one of those events is done manually, the change event doesn't happen. I also noticed that if an input is in focus, and a click happens on say, a div, the input doesn't lose focus as it would in a manual click.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.