Browse Source

Update comments.

Naotoshi Fujita 2 years ago
parent
commit
7f2f8e1627
2 changed files with 2 additions and 3 deletions
  1. 2 2
      src/js/components/Autoplay/Autoplay.ts
  2. 0 1
      src/js/components/Move/Move.ts

+ 2 - 2
src/js/components/Autoplay/Autoplay.ts

@@ -27,7 +27,7 @@ export interface AutoplayComponent extends BaseComponent {
 }
 
 /**
- * The component for auto playing sliders.
+ * The component for autoplay, handling a progress bar and a toggle button.
  *
  * @since 3.0.0
  *
@@ -150,7 +150,7 @@ export function Autoplay( Splide: Splide, Components: Components, options: Optio
   /**
    * Called on every animation frame while autoplay is active.
    *
-   * @param rate - The progress rate between 0 to 1.
+   * @param rate - The progress rate between 0 and 1.
    */
   function onAnimationFrame( rate: number ): void {
     const { bar } = Elements;

+ 0 - 1
src/js/components/Move/Move.ts

@@ -71,7 +71,6 @@ export function Move( Splide: Splide, Components: Components, options: Options )
    * Repositions the slider.
    * - Do not call `cancel()` here because LazyLoad may emit resize while transitioning.
    * - iOS Safari emits window resize event while the user swipes the slider because of the bottom bar.
-   * - Slide components listening to the internal repositioned event to update their visibility.
    */
   function reposition(): void {
     if ( ! Components.Controller.isBusy() ) {