javascript - Titanium scrollView does not react -



javascript - Titanium scrollView does not react -

i seek implement image in titanium can rotated , scaled. managed create work properly, want able scroll image around if bigger imageview. tried several things including adding eventlisteners , using zindex bring proper view front end nil helps. experimented bubbleparent function without other result. hope of got thought how accomplish desired behaviour.

xml:

<scrollview id="imagescrollview"> <view id="pictureview"> <imageview id="picture" ></imageview> </view> </scrollview>

tss:

"#imagescrollview": { top: "0", left: "0", height: "120", width: "47%", showhorizontalscrollindicator: "true", showverticalscrollindicator: "true", maxzoomscale: "5", minzoomscale: "1", backgroundcolor: "white", scrollingenabled: "true", borderwidth: "1", zindex: "1050" } "#pictureview": { top: "0", left: "0", height: "100%", width: "100%", bubbleparent: true } "#picture": { top: "0", left: "0", height: "100%", width: "100%", borderwidth: "3", bordercolor: "red", bubbleparent: true }

and js

$.imagescrollview.addeventlistener("scroll", function(e) { ti.api.info("triggered event"); }); $.pictureview.addeventlistener("scroll", function(e) { ti.api.info("triggered event"); });

after managed work using module: titouchimageview. if have problems importing / using refer other question.

javascript events titanium

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -