Skip to content

Hotfix/touchmove #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions dist/react-lite.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,6 @@ var unbubbleEvents = {
* even though mousemove event can bubble
*/
onmousemove: 1,
ontouchmove: 1,
onmouseleave: 1,
onmouseenter: 1,
onload: 1,
Expand Down Expand Up @@ -956,8 +955,6 @@ function addEvent(elem, eventType, listener) {
return;
}

var nodeName = elem.nodeName;

if (eventType === 'onchange' && supportInputEvent(elem)) {
addEvent(elem, 'oninput', listener);
}
Expand All @@ -977,8 +974,6 @@ function removeEvent(elem, eventType) {
return;
}

var nodeName = elem.nodeName;

if (eventType === 'onchange' && supportInputEvent(elem)) {
delete eventStore['oninput'];
}
Expand Down
5 changes: 0 additions & 5 deletions dist/react-lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,6 @@
* even though mousemove event can bubble
*/
onmousemove: 1,
ontouchmove: 1,
onmouseleave: 1,
onmouseenter: 1,
onload: 1,
Expand Down Expand Up @@ -960,8 +959,6 @@
return;
}

var nodeName = elem.nodeName;

if (eventType === 'onchange' && supportInputEvent(elem)) {
addEvent(elem, 'oninput', listener);
}
Expand All @@ -981,8 +978,6 @@
return;
}

var nodeName = elem.nodeName;

if (eventType === 'onchange' && supportInputEvent(elem)) {
delete eventStore['oninput'];
}
Expand Down
2 changes: 1 addition & 1 deletion dist/react-lite.min.js

Large diffs are not rendered by default.

Binary file modified dist/react-lite.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-lite",
"version": "0.15.37",
"version": "0.15.38",
"description": "an implementation of React that optimizes for small script size",
"main": "dist/react-lite.common.js",
"jsnext:main": "src/index.js",
Expand Down
5 changes: 0 additions & 5 deletions src/event-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const unbubbleEvents = {
* even though mousemove event can bubble
*/
onmousemove: 1,
ontouchmove: 1,
onmouseleave: 1,
onmouseenter: 1,
onload: 1,
Expand Down Expand Up @@ -92,8 +91,6 @@ export function addEvent(elem, eventType, listener) {
return
}

let nodeName = elem.nodeName

if (eventType === 'onchange' && supportInputEvent(elem)) {
addEvent(elem, 'oninput', listener)
}
Expand All @@ -113,8 +110,6 @@ export function removeEvent(elem, eventType) {
return
}

let nodeName = elem.nodeName

if (eventType === 'onchange' && supportInputEvent(elem)) {
delete eventStore['oninput']
}
Expand Down