소스 검색

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 {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.