MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / scrollFunc

Function scrollFunc

public/iframe/lib/js/mixinsComponents.js:2572–2578  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2570 element && (element[0].style.zoom = this.innerZoom)
2571 },
2572 scrollFunc(e) {
2573 if (e.wheelDelta > 0) {
2574 this.$refs.carousel.setActiveItem(this.nowWindowIndex + 1)
2575 } else {
2576 this.$refs.carousel.setActiveItem(this.nowWindowIndex - 1)
2577 }
2578 },
2579 windowChange(e) {
2580 // 改变窗口
2581 this.nowWindowIndex = e

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected