We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if
mouse_cursor
if let
1 parent ecfd7ac commit 9810324Copy full SHA for 9810324
1 file changed
core/src/display_object/movie_clip.rs
@@ -3177,13 +3177,13 @@ impl<'gc> TInteractiveObject<'gc> for MovieClip<'gc> {
3177
// The nearest button-mode ancestor governs the cursor, so stop at the first one.
3178
let mut current: Option<DisplayObject<'gc>> = Some(self.into());
3179
while let Some(obj) = current {
3180
- if let Some(mc) = obj.as_movie_clip() {
3181
- if mc.is_button_mode(context) {
3182
- if mc.use_hand_cursor(context) && mc.enabled(context) {
3183
- return MouseCursor::Hand;
3184
- }
3185
- break;
+ if let Some(mc) = obj.as_movie_clip()
+ && mc.is_button_mode(context)
+ {
+ if mc.use_hand_cursor(context) && mc.enabled(context) {
+ return MouseCursor::Hand;
3186
}
+ break;
3187
3188
current = obj.parent();
3189
0 commit comments