Add `animated_image` to clickthrough elements (#9724)

master
v-rob 2020-04-25 07:55:21 -07:00 committed by GitHub
parent 8b45f6a5f3
commit bc60e44d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View 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);
}