mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	merge: Fix: scrolling alt text using a mouse (!810)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/810 Closes #654 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
		
						commit
						d6297f2035
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -195,6 +195,12 @@ onMounted(() => {
 | 
			
		|||
 | 
			
		||||
					textBox.textContent = pswp.currSlide?.data.comment;
 | 
			
		||||
				});
 | 
			
		||||
 | 
			
		||||
				// `passive: true` is for Safari compatibility, apparently
 | 
			
		||||
				const stopEvent = name => textBox.addEventListener(name, event => event.stopPropagation(), { passive: true });
 | 
			
		||||
				stopEvent('wheel');
 | 
			
		||||
				stopEvent('pointerdown');
 | 
			
		||||
				stopEvent('pointercancel');
 | 
			
		||||
			},
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue