From 38ba78449105e99f6b8323c35ea938dfa51f0873 Mon Sep 17 00:00:00 2001 From: AlephAlpha Date: Tue, 14 Jan 2020 21:10:36 +0800 Subject: [PATCH] Fix names of touch event listeners --- src/html/listener.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/html/listener.rs b/src/html/listener.rs index 99d51de5c13..a064669790a 100644 --- a/src/html/listener.rs +++ b/src/html/listener.rs @@ -134,11 +134,11 @@ impl_action! { } } } - touchcancel(event: TouchCancel) -> TouchCancel => |_, event| { event } - touchend(event: TouchEnd) -> TouchEnd => |_, event| { event } - touchenter(event: TouchEnter) -> TouchEnter => |_, event| { event } - touchmove(event: TouchMove) -> TouchMove => |_, event| { event } - touchstart(event: TouchStart) -> TouchStart => |_, event| { event } + ontouchcancel(event: TouchCancel) -> TouchCancel => |_, event| { event } + ontouchend(event: TouchEnd) -> TouchEnd => |_, event| { event } + ontouchenter(event: TouchEnter) -> TouchEnter => |_, event| { event } + ontouchmove(event: TouchMove) -> TouchMove => |_, event| { event } + ontouchstart(event: TouchStart) -> TouchStart => |_, event| { event } } /// A type representing data from `oninput` event.