Skip to content

Commit

Permalink
fix order of arguments (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
3timeslazy authored and ziflex committed Mar 19, 2019
1 parent e951b91 commit 1cf260c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/stdlib/html/scroll_xy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1cf260c

Please sign in to comment.