Fix issue 356 - no interaction with the target element.

An attempt to fix issue #356.
See the commit message for details.