mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-24 07:34:11 +00:00
e49103061e
When dwelling back to a link, previously a new LINK_DWELL action would be sent and the reducer would reset the interaction as if it was a new one. This shouldn't happen, since dwelling back to the active link (from the preview, for example) is not a new interaction, and should not create a new interaction or hide and show the preview. With this change, the preview reducer has the notion of new or repeat interactions, and only resets state on new ones, and only sets isUserDwelling when dwelling on a the link of the current interaction. Also when the interaction is repeat, we guard on the action creator and don't trigger the wait or the fetch request. Change-Id: I71cde81cbfe50b6f955e562e7e5b57d0f920fdb9 |
||
---|---|---|
doc | ||
i18n | ||
images | ||
includes | ||
resources | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.stylelintrc | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gemfile | ||
Gemfile.lock | ||
Gruntfile.js | ||
jsduck.json | ||
package.json | ||
Popups.hooks.php | ||
Popups.php |