From da50d444600e1764780f7abc01bb21c70b277d57 Mon Sep 17 00:00:00 2001 From: Toad06 Date: Mon, 24 Jan 2022 13:13:34 +0100 Subject: [PATCH] core: Fix detection of button events --- core/src/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/events.rs b/core/src/events.rs index 493261378..dd73c2bda 100644 --- a/core/src/events.rs +++ b/core/src/events.rs @@ -286,7 +286,7 @@ impl<'gc> ClipEvent<'gc> { /// Indicates whether this is an event type used by Buttons (i.e., on that can be used in an `on` handler in Flash). pub const fn is_button_event(self) -> bool { if let Some(flag) = self.flag() { - flag.contains(Self::BUTTON_EVENT_FLAGS) + flag.intersects(Self::BUTTON_EVENT_FLAGS) } else { false }