mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
DROP_MOVE_REPEAT.
This commit is contained in:
parent
3bbe3781c8
commit
80550350a8
@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
DROP_MOVE_REPEAT = 4
|
||||
DROP_DELAY = 100 * time.Millisecond
|
||||
)
|
||||
|
||||
@ -29,10 +30,11 @@ func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) bool {
|
||||
})
|
||||
|
||||
drop.Emmiter.Once("begin", func(payload ...interface{}) {
|
||||
for i := 0; i < DROP_MOVE_REPEAT; i++ {
|
||||
manager.Move(x, y)
|
||||
time.Sleep(DROP_DELAY)
|
||||
manager.Move(x, y)
|
||||
time.Sleep(DROP_DELAY)
|
||||
}
|
||||
|
||||
manager.ButtonUp(1)
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user