#56 : Rename focusable -> hoverable

This commit is contained in:
Vadim
2021-08-16 16:42:07 +03:00
parent d71d245a96
commit d019404259
7 changed files with 53 additions and 53 deletions

View File

@@ -6,7 +6,7 @@
import Progress from '../Progress/Progress.svelte'
import { NEXT, PREV } from '../../direction'
import { swipeable } from '../../actions/swipeable'
import { focusable } from '../../actions/focusable'
import { hoverable } from '../../actions/hoverable'
import { tappable } from '../../actions/tappable'
import {
addResizeEventListener,
@@ -311,7 +311,7 @@
await offsetPage({ animated: true })
}
function handleFocused(event) {
function handleHovered(event) {
focused = event.detail.value
}
function handleTapped(event) {
@@ -336,8 +336,8 @@
class="sc-carousel__pages-window"
bind:this={pageWindowElement}
use:focusable
on:focused={handleFocused}
use:hoverable
on:hovered={handleHovered}
use:tappable
on:tapped={handleTapped}