Keep input item in abounds

This commit is contained in:
Andrew Gundersen 2021-03-19 12:37:14 -05:00
commit f123fefc6e
2 changed files with 62 additions and 37 deletions

View file

@ -48,7 +48,7 @@ export default defineComponent({
const yStart = window.innerHeight - 200;
// Calculate position of inputItem on drag.
const { elementX, elementY } = draggify("inputItem", xStart, yStart);
const { elementX, elementY } = draggify("inputItem", xStart, yStart, 15);
// Controllers for text and audio.
const { typing } = useTextInputController(elementX)