Add `animated_image` to clickthrough elements (#9724)
authorv-rob <robinsonvincent89@gmail.com>
Sat, 25 Apr 2020 14:55:21 +0000 (07:55 -0700)
committerGitHub <noreply@github.com>
Sat, 25 Apr 2020 14:55:21 +0000 (16:55 +0200)
src/gui/guiFormSpecMenu.cpp

index 0ed525f978e6295675435a668c7d3331974ab8df..567f0ca7e96437d71b850240456f13596223c06d 100644 (file)
@@ -915,7 +915,9 @@ void GUIFormSpecMenu::parseAnimatedImage(parserData *data, const std::string &el
 
        auto style = getDefaultStyleForElement("animated_image", spec.fname, "image");
        e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false));
-       e->drop();
+
+       // Animated images should let events through
+       m_clickthrough_elements.push_back(e);
 
        m_fields.push_back(spec);
 }