mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	use client coords not screen coords
This commit is contained in:
		| @@ -34,10 +34,10 @@ export class ContextMenu { | |||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| 	show({screenX, screenY}) { | 	show({clientX, clientY}) { | ||||||
| 		this.render(); | 		this.render(); | ||||||
| 		this.menu.style.bottom = `${window.innerHeight - screenY}px`; | 		this.menu.style.bottom = `${window.innerHeight - clientY}px`; | ||||||
| 		this.menu.style.left = `${screenX}px`; | 		this.menu.style.left = `${clientX}px`; | ||||||
| 		document.body.append(this.root); | 		document.body.append(this.root); | ||||||
| 	} | 	} | ||||||
| 	hide() { | 	hide() { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user