Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add `animated_image` to clickthrough elements (#9724)
- Loading branch information
Showing
with
3 additions
and
1 deletion.
-
+3
−1
src/gui/guiFormSpecMenu.cpp
|
@@ -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); |
|
|
} |
|
|