Scrubbing

Scrub

๋ฌด์–ธ๊ฐ€๋ฅผ ์„ธ๊ฒŒ ๋ฌธ์ง€๋ฅด๋‹ค...

Pointer Event

๋งˆ์šฐ์Šค ์ด๋ฒคํŠธ์™€ ๋น„์Šทํ•˜์ง€๋งŒ, ๋งˆ์šฐ์Šค ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋‹ค์–‘ํ•œ ์ž…๋ ฅ ์žฅ์น˜์— ๋Œ€์‘๋˜๋Š” ๋‹ค์–‘ํ•œ ์ด๋ฒคํŠธ๋ฅผ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋‹ค.

  • onPointDown

  • onPointMove

  • onPointUp

PointerId

์ด๋ฒคํŠธ๊ฐ€ ๋ฐœ์ƒํ•œ ํฌ์ธํ„ฐ(๋งˆ์šฐ์Šค, ํ„ฐ์น˜, ํŽœ ๋“ฑ)๋ฅผ ๊ณ ์œ ํ•˜๊ฒŒ ์‹๋ณ„ํ•˜๊ธฐ ์œ„ํ•œ ๊ฐ’

  • ํ•˜๋‚˜์˜ ์ž…๋ ฅ ์žฅ์น˜์—์„œ ์—ฌ๋Ÿฌ ๊ฐœ์˜ ํฌ์ธํ„ฐ ์ด๋ฒคํŠธ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ์ƒํ™ฉ ๋˜๋Š” ์—ฌ๋Ÿฌ ์ž…๋ ฅ ์žฅ์น˜์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์ด๋ฒคํŠธ๋ฅผ ๊ตฌ๋ถ„ํ•˜๋Š” ์ƒํ™ฉ์„ ๋‹ค๋ฃฐ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Pointer Lock

๋งˆ์šฐ์Šค ์ปค์„œ๋ฅผ ์ž ๊ฐ€ ์‚ฌ์šฉ์ž์˜ ๋งˆ์šฐ์Šค ์ž…๋ ฅ์„ ์บก์ฒ˜ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•œ๋‹ค.

  • pointerLockChange -> ๋งˆ์šฐ์Šค ์ปค์„œ์˜ ์ž ๊น€ ์ƒํƒœ๊ฐ€ ๋ณ€๊ฒฝ๋  ๋•Œ ๋งˆ๋‹ค ํ˜ธ์ถœ๋œ๋‹ค.

  • pointerLockError

Pointer Capture

ํฌ์ธํ„ฐ ์บก์ฒ˜๋ž€ ํ•ด๋‹น ์—˜๋ฆฌ๋จผํŠธ๊ฐ€ ํฌ์ธํ„ฐ์˜ ์ด๋™ ๋ฐ ์ด๋ฒคํŠธ๋ฅผ ๋…์ ์ ์œผ๋กœ ์ˆ˜์‹ ํ•˜๋Š” ์ƒํƒœ๋ฅผ ์˜๋ฏธ

  • setPointerCapture -> ํŠน์ • ์—˜๋ฆฌ๋จผํŠธ์— ํฌ์ธํ„ฐ๋ฅผ ์บก์ฒ˜ํ•˜์—ฌ ๋‹ค๋ฅธ ์—˜๋ฆฌ๋จผํŠธ๋กœ ํฌ์ธํ„ฐ๊ฐ€ ์ด๋™ํ•ด๋„ ํ•ด๋‹น ์—˜๋ฆฌ๋จผํŠธ์—์„œ ๊ณ„์†์ ์œผ๋กœ ์ด๋ฒคํŠธ๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค.

  • hasPointerCapture -> ํ˜„์žฌ ํŠน์ • pointerID์— ๋Œ€ํ•œ ์บก์ฒ˜๊ฐ€ ์„ค์ •๋˜์–ด ์žˆ๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ํ™•์ธ

  • releasePointerCapture -> ํŠน์ • pointerId์— ๋Œ€ํ•œ ์บก์ฒ˜๋ฅผ ํ•ด์ œํ•œ๋‹ค.

Last updated