Combine scroll and scroll finish commands
This commit is contained in:
parent
1f3aa58568
commit
ad3847f5aa
6 changed files with 19 additions and 32 deletions
|
|
@ -268,7 +268,7 @@ func (p *portalBackend) PointerMove(deltaX, deltaY int) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (p *portalBackend) pointerScrollFull(deltaHorizontal, deltaVertical int, finish bool) error {
|
||||
func (p *portalBackend) PointerScroll(deltaHorizontal, deltaVertical int, finish bool) error {
|
||||
p.lock.RLock()
|
||||
defer p.lock.RUnlock()
|
||||
if p.bus == nil {
|
||||
|
|
@ -282,11 +282,3 @@ func (p *portalBackend) pointerScrollFull(deltaHorizontal, deltaVertical int, fi
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *portalBackend) PointerScroll(deltaHorizontal, deltaVertical int) error {
|
||||
return p.pointerScrollFull(deltaHorizontal, deltaVertical, false)
|
||||
}
|
||||
|
||||
func (p *portalBackend) PointerScrollFinish() error {
|
||||
return p.pointerScrollFull(0, 0, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue