Mouse scrolling is not working while adding and dragging a new portlet from the sidebar from DXP 7.3
Written By
Gábor Komáromi
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- On larger widget pages, positioning a portlet while adding it from the sidebar by dragging can be uncomfortable from DXP 7.3 as mouse scrolling is no longer working.
Environment
- Liferay DXP 7.3
- Liferay DXP 7.4
Resolution
- The replacement of the metal-drag-drop library to React-DnD causes the difference between the versions, as React-DnD does not support mouse wheel events while dragging. While this issue seems to be a feature loss compared to earlier versions, the replacement of the metal-drag-drop library to React-DnD has improvements in newer versions, especially in touch screens. Having the auto-scroll functionality makes it possible to scroll for users who do not have a mouse wheel.
-
Possible workarounds:
- use the auto-scroll function
- drag the already dropped portlet and start scrolling with the mouse-wheel until the desired position is found
- scroll to the desired position and drag and drop the portlet
Did this article resolve your issue ?