mediawiki-extensions-Popups/resources
joakin e49103061e Don't reset interaction info when dwelling back to a link
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
2017-01-10 17:44:37 -08:00
..
ext.popups Don't reset interaction info when dwelling back to a link 2017-01-10 17:44:37 -08:00
ext.popups.core previews: Tidy up styles 2016-11-29 18:11:11 +00:00
ext.popups.desktop Remove jshint/jscs, add eslint and stylelint 2016-12-16 13:35:34 +01:00
ext.popups.images Hovercards: Improve layout of settings dialog to design spec 2016-08-10 14:01:36 -04:00
ext.popups.lib Use Redux and Redux Thunk 2016-11-08 15:33:20 -05:00
ext.popups.schemaPopups Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00
ext.popups.schemaPopups.utils Hygiene: Rename getMassagedData to processHovercardEvent 2016-10-31 11:25:09 +00:00