mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix conflict with other scrollers
This commit is contained in:
parent
65373c8ae5
commit
4fb3a46fea
3 changed files with 90 additions and 37 deletions
|
@ -630,6 +630,8 @@ const scrollerFactory = function (frame, options) {
|
|||
//passive: true
|
||||
});
|
||||
|
||||
scrollSource.removeAttribute(`data-scroll-mode-${o.horizontal ? 'x' : 'y'}`);
|
||||
|
||||
// Reset initialized status and return the instance
|
||||
self.initialized = 0;
|
||||
return self;
|
||||
|
@ -751,6 +753,8 @@ const scrollerFactory = function (frame, options) {
|
|||
}
|
||||
}
|
||||
|
||||
scrollSource.setAttribute(`data-scroll-mode-${o.horizontal ? 'x' : 'y'}`, 'custom');
|
||||
|
||||
if (transform || layoutManager.tv) {
|
||||
// This can prevent others from being able to listen to mouse events
|
||||
dom.addEventListener(dragSourceElement, 'mousedown', dragInitSlidee, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue