@afeefa/vue-app 0.0.221 → 0.0.222

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.221
1
+ 0.0.222
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.221",
3
+ "version": "0.0.222",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -129,8 +129,10 @@ export default class ListView extends Mixins(ListViewMixin) {
129
129
 
130
130
  xStart = null
131
131
  scrollLeftStart = null
132
+ scrollContainerX = null
132
133
  yStart = null
133
134
  scrollTopStart = null
135
+ scrollContainerY = null
134
136
 
135
137
  @Watch('isLoading')
136
138
  isLoadingChanged () {
@@ -203,6 +205,9 @@ export default class ListView extends Mixins(ListViewMixin) {
203
205
  }
204
206
 
205
207
  startShifting (event) {
208
+ this.scrollContainerX = this.getScrollParent(this.$el.querySelector('.a-table-wrapper'), 'h')
209
+ this.scrollContainerY = this.getScrollParent(this.$el.querySelector('.a-table-wrapper'), 'v')
210
+
206
211
  if (this.scrollContainerX || this.scrollContainerY) {
207
212
  window.addEventListener('mouseup', this.stopShifting)
208
213
  window.addEventListener('mousemove', this.shift)
@@ -253,14 +258,6 @@ export default class ListView extends Mixins(ListViewMixin) {
253
258
  }
254
259
  }
255
260
 
256
- get scrollContainerX () {
257
- return this.getScrollParent(this.$el.querySelector('.a-table-wrapper'), 'h')
258
- }
259
-
260
- get scrollContainerY () {
261
- return this.getScrollParent(this.$el.querySelector('.a-table-wrapper'), 'v')
262
- }
263
-
264
261
  getScrollParent (node, direction) {
265
262
  if (node == null) {
266
263
  return null