소스 검색

Set Tippy instances to only respond to touch-holds

vintage
Fen Dweller 5 년 전
부모
커밋
2184289f34
4개의 변경된 파일10개의 추가작업 그리고 5개의 파일을 삭제
  1. +2
    -1
      src/components/ChoiceButton.vue
  2. +2
    -1
      src/components/NavButton.vue
  3. +4
    -2
      src/components/Statblock.vue
  4. +2
    -1
      src/game/interface.ts

+ 2
- 1
src/components/ChoiceButton.vue 파일 보기

@@ -30,7 +30,8 @@ export default class ChoiceButton extends Vue {
tippy(
elem,
{
content: tooltip
content: tooltip,
touch: ["hold", 500]
}
)
}


+ 2
- 1
src/components/NavButton.vue 파일 보기

@@ -30,7 +30,8 @@ export default class NavButton extends Vue {
tippy(
elem,
{
content: tooltip
content: tooltip,
touch: ["hold", 500]
}
)
}


+ 4
- 2
src/components/Statblock.vue 파일 보기

@@ -130,7 +130,8 @@ export default class Statblock extends Vue {
const tooltip = elem.querySelector(".tooltip-template") as HTMLElement

return tippy(elem, {
content: tooltip
content: tooltip,
touch: ["hold", 500]
})
})
})
@@ -143,7 +144,8 @@ export default class Statblock extends Vue {
const tooltip = elem.querySelector(".tooltip-template") as HTMLElement

return tippy(elem, {
content: tooltip
content: tooltip,
touch: ["hold", 500]
})
})
createSingleton(tippyInstances, { delay: 500 })


+ 2
- 1
src/game/interface.ts 파일 보기

@@ -208,7 +208,8 @@ export class PropElem implements LogEntry {
span.appendChild(icon)

tippy(icon, {
content: tooltipTemplate
content: tooltipTemplate,
touch: ["hold", 500]
})
return [span]
}


불러오는 중...
취소
저장