Fixed Preview editor button can be inadvertently triggered when scrolling on mobile

Affected version
XF 2.2

marquisite

Well-known member
In XF2.2, scrolling through a thread can inadvertently trigger the reply preview action, if the initial screen interaction starts on the preview button. If no message has been entered yet, this triggers a 'Please enter a valid message' error in an overlay. In this scenario previewing is not my intention, so the error message comes as a surprise.

To reproduce: Try operating your phone 'one handed' and scroll with your right thumb. If your thumb touches the preview button as your start scrolling, you'll trigger the preview button.

Browser: Samsung Internet Browser 12 (Chrome 79)
OS: Android 9

As an aside, is there any point in activating the preview button when the editor does not contain any characters?
 
Last edited:

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.0 Beta 4).

Change log:
Prevent previewing editor contents when said editor is empty
There may be a delay before changes are rolled out to the XenForo Community.
 
Top