(ctx, { target, offset, container })
| 6359 | return new _ScrollCommand(target, offset, null, scrollOptions, null, byMode); |
| 6360 | } |
| 6361 | resolve(ctx, { target, offset, container }) { |
| 6362 | if (this.byMode) { |
| 6363 | var el = target || document.documentElement; |
| 6364 | var dir = this.byMode.direction; |
| 6365 | var top = 0, left = 0; |
| 6366 | if (dir === "up") top = -offset; |
| 6367 | else if (dir === "down") top = offset; |
| 6368 | else if (dir === "left") left = -offset; |
| 6369 | else if (dir === "right") left = offset; |
| 6370 | var opts = { top, left }; |
| 6371 | if (this.scrollOptions.behavior) opts.behavior = this.scrollOptions.behavior; |
| 6372 | el.scrollBy(opts); |
| 6373 | } else { |
| 6374 | _resolveScroll(ctx, target, offset, this.plusOrMinus, this.scrollOptions, container); |
| 6375 | } |
| 6376 | return this.findNext(ctx); |
| 6377 | } |
| 6378 | }; |
| 6379 | var GoCommand = class _GoCommand extends Command { |
| 6380 | static keyword = "go"; |
nothing calls this directly
no test coverage detected