gumilastik / VVVV.HTMLTexture.DX11

Browser for DX11, based on ChromiumFX library. Perfectly fit for UI.
5 stars 7 forks source link

Request: Touch Input #2

Closed siberiansun closed 8 years ago

siberiansun commented 8 years ago

Would be really nice if HTML Texture could handle touch input for scrolling content.

gumilastik commented 8 years ago

Currently CEF does not support (multitouch)touch input. There is some patch for CEF that allow to do it, but ChromiumFX generated from original sources (without any patches). So you can only emulate scrolling behavior through js execution: window.scrollTo(X, Y);

simonemarin commented 8 years ago

Curious, it does work with window.scrollTo(x,y); but it doesn t with $('.myclass´).scrollTo(x,y); any idea why? of course .myclass { height: 300px; overflow: auto;} Simone

gumilastik commented 8 years ago

This question more related to JS. As I remember only window object can use scrollTo method, DOM object may use scrollTop and scrollLeft properties instead. With jQuery you can use:

$('.myclass').scrollLeft(X).scrollTop(Y);

Or some scrolling plugins like ScrollTo.