Comments (3)
是的,我不太打算让配置文件 handle 鼠标操作,冲突的可能性很大(不过说不定可以作为可选的功能)。
from iina.
没想到这一点,感谢反馈!
Didn't aware this. Thanks for feedback and it will be fixed later.
from iina.
今天才看到这个项目,下载下来第一时间也在研究这个问题😂
不知能否通过 AXIS_UP/DOWN/LEFT/RIGHT 来覆盖上下左右滚动的设置?
但通过研究代码发现,貌似这部分功能没有使用配置文件?
override func scrollWheel(with event: NSEvent) {
guard !isInInteractiveMode else { return }
if event.phase.contains(.began) {
if event.scrollingDeltaX != 0 {
scrollDirection = .horizontal
} else if event.scrollingDeltaY != 0 {
scrollDirection = .vertical
}
} else if event.phase.contains(.ended) {
scrollDirection = nil
}
// handle the value
let seekFactor = AppData.seekAmountMap[relativeSeekAmount]!
if scrollDirection == .horizontal {
playerCore.seek(relativeSecond: seekFactor * Double(event.scrollingDeltaX), option: useExtrackSeek)
} else if scrollDirection == .vertical {
let newVolume = playerCore.info.volume - Int(event.scrollingDeltaY)
playerCore.setVolume(newVolume)
volumeSlider.integerValue = newVolume
}
}
from iina.
Related Issues (20)
- 切换不同字幕可以根据文件名切换,而不是按字幕流序号的方式 HOT 5
- RTL language causes misalignment of slider labels
- High delay streaming with avi files HOT 3
- RTL language causes history progress indicator to reverse
- Leave controls on where they aren't obstructing anything HOT 1
- RTL language causes button to overlap scroll bar HOT 1
- open weblink (iina://) with space (' ') and box brackets ('[]') got error
- Audio track switches when closing the lid of my mac book HOT 12
- RTL language causes clipped aspect ratio button HOT 2
- ReplayGain support HOT 5
- Spatial Audio-Like Multi-channel Audio Output In IINA? HOT 2
- Can't disable pause when machine goes to sleep
- Audio skips when spatial audio is turned on and off HOT 3
- Playback fails to start with avfoundation audio driver HOT 2
- RTL language causes misalignment of equalizer label
- RTL causes icons to overlap with the text in the Quick Settings tabs HOT 2
- Sub ass style overrides always applied
- Holding down mouse button to change speed HOT 3
- FFmpeg/lavfi=[unsharp filter] suddenly stopped affecting picture. UPDATE: It does not work with yuv420p10 Pixel Format HOT 3
- A way to set the default subtitle per file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iina.