Skip to main content

touch_event_ctor

Function touch_event_ctor 

Source
pub(crate) fn touch_event_ctor(
    it: &mut Interp,
    t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

new TouchEvent(type, options)(丸ごと未対応だった。touches/ targetTouches/changedTouches は仕様上 TouchList だが、この 処理系は他のイベント同様プレーンな配列で簡略表現する。基底の Event プロパティは event_ctor を再利用する。