wip: static, widget-only local zoom
This commit is contained in:
parent
903eb82324
commit
0716eae53c
1 changed files with 9 additions and 9 deletions
|
|
@ -30,15 +30,15 @@ document.addEventListener('wheel', function(event) {
|
|||
}
|
||||
}, {passive: false})
|
||||
|
||||
document.addEventListener('mousemove', function(event) {
|
||||
mousePos = [
|
||||
event.pageX / window.innerWidth * 100,
|
||||
event.pageY / window.innerHeight * 100
|
||||
]
|
||||
if (localZoom !== 1) {
|
||||
applylocalZoom()
|
||||
}
|
||||
}, {passive: false})
|
||||
// document.addEventListener('mousemove', function(event) {
|
||||
// mousePos = [
|
||||
// event.pageX / window.innerWidth * 100,
|
||||
// event.pageY / window.innerHeight * 100
|
||||
// ]
|
||||
// if (localZoom !== 1) {
|
||||
// applylocalZoom()
|
||||
// }
|
||||
// }, {passive: false})
|
||||
|
||||
|
||||
var container = DOM.get('#osc-container')[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue