![]() ![]() This can be accomplished without jQuery however for my usage, I already had jQuery and didn't need to code something up to find whether the element has a particular parent. You want to prevent the default on the touch move event however you also need to clear your flag for this at the end of the touch event otherwise no touch scroll events will work. Idera has completed its review / investigation. This is an update of Ideras internal review of the Log4J Issue (CVE-2021-44228). The e.target refers to the element that the touch start begins with. Disable TreePanel and not disabling scroll Security Bulletin Update - Log4J Issue (CVE-2021-44228) NOTE: This incident is no longer considered active, but is being maintained as Monitoring for short-term visibility. ![]() closest and allowing that to turn on/off the touch movement doing scrolling. If ($(e.target).closest('#mobileMenuHeader').length = 1)Įssentially, what I am doing is listening on the touch start to see whether it begins on an element that is a child of another using jQuery. ![]() Taken as-is from a project of mine: window.blockMenuHeaderScroll = false Similar to the answer given by I used a combination of ontouchstart and ontouchmove to prevent scrolling when it is on a certain element. The recommendation is to use touch-action which is also suggested by answer. Note: As pointed out in the comments by this solution may no longer work (at least in Chrome) due to performance changes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |