diff --git a/Step/wwwroot/src/components/depot.ts b/Step/wwwroot/src/components/depot.ts index 21450308..929a86bc 100644 --- a/Step/wwwroot/src/components/depot.ts +++ b/Step/wwwroot/src/components/depot.ts @@ -136,9 +136,9 @@ export default class depot extends Vue { this.currentPosition = index; var c = (this.$refs.positionslist as any); - var move = index * this.BLOCKSIZE; - if (index < this.positions.length - 2) - move = move - 2 * this.BLOCKSIZE; - c.scrollLeft = move; + var move = (index * this.BLOCKSIZE) ; + c.scrollLeft = move - (c.clientWidth /2) + this.BLOCKSIZE/2; + + } }