mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-05 15:16:07 +02:00
fix order of arguments (#269)
This commit is contained in:
parent
e951b914a5
commit
1cf260cd59
@ -2,8 +2,8 @@ package html
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/MontFerret/ferret/pkg/drivers"
|
||||
|
||||
"github.com/MontFerret/ferret/pkg/drivers"
|
||||
"github.com/MontFerret/ferret/pkg/runtime/core"
|
||||
"github.com/MontFerret/ferret/pkg/runtime/values"
|
||||
"github.com/MontFerret/ferret/pkg/runtime/values/types"
|
||||
@ -38,13 +38,13 @@ func ScrollXY(ctx context.Context, args ...core.Value) (core.Value, error) {
|
||||
return values.None, err
|
||||
}
|
||||
|
||||
x, err := values.ToFloat(args[0])
|
||||
x, err := values.ToFloat(args[1])
|
||||
|
||||
if err != nil {
|
||||
return values.None, err
|
||||
}
|
||||
|
||||
y, err := values.ToFloat(args[1])
|
||||
y, err := values.ToFloat(args[2])
|
||||
|
||||
if err != nil {
|
||||
return values.None, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user