(ctx, { target, offset, container })
| 6000 | return new _ScrollCommand(target, offset, null, scrollOptions, null, byMode); |
| 6001 | } |
| 6002 | resolve(ctx, { target, offset, container }) { |
| 6003 | if (this.byMode) { |
| 6004 | var el = target || document.documentElement; |
| 6005 | var dir = this.byMode.direction; |
| 6006 | var top = 0, left = 0; |
| 6007 | if (dir === "up") top = -offset; |
| 6008 | else if (dir === "down") top = offset; |
| 6009 | else if (dir === "left") left = -offset; |
| 6010 | else if (dir === "right") left = offset; |
| 6011 | var opts = { top, left }; |
| 6012 | if (this.scrollOptions.behavior) opts.behavior = this.scrollOptions.behavior; |
| 6013 | el.scrollBy(opts); |
| 6014 | } else { |
| 6015 | _resolveScroll(ctx, target, offset, this.plusOrMinus, this.scrollOptions, container); |
| 6016 | } |
| 6017 | return this.findNext(ctx); |
| 6018 | } |
| 6019 | }; |
| 6020 | var GoCommand = class _GoCommand extends Command { |
| 6021 | static keyword = "go"; |
nothing calls this directly
no test coverage detected