فهرست منبع

drag by pan fixed y position.

Ievgen Naida 5 سال پیش
والد
کامیت
0b71dab987
3فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      lib/animation-timeline.js
  2. 0 0
      lib/animation-timeline.min.js
  3. 1 1
      src/timeline.ts

+ 1 - 1
lib/animation-timeline.js

@@ -2077,7 +2077,7 @@ var timeline_Timeline = /*#__PURE__*/function (_TimelineEventsEmitte) {
         this._scrollContainer.scrollLeft = newLeft;
       }
 
-      this._scrollContainer.scrollTop = Math.round(start.y - pos.y);
+      this._scrollContainer.scrollTop = Math.round(scrollStartPos.y + start.y - pos.y);
     }
   }, {
     key: "_scrollBySelectionOutOfBounds",

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
lib/animation-timeline.min.js


+ 1 - 1
src/timeline.ts

@@ -841,7 +841,7 @@ export class Timeline extends TimelineEventsEmitter {
     } else {
       this._scrollContainer.scrollLeft = newLeft;
     }
-    this._scrollContainer.scrollTop = Math.round(start.y - pos.y);
+    this._scrollContainer.scrollTop = Math.round(scrollStartPos.y + start.y - pos.y);
   }
 
   _scrollBySelectionOutOfBounds(pos: DOMPoint): boolean {

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است