You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, October 27th 2012, 9:31pm

scrollarea drag help please

Simple Request for dragging help...

I have a menu tab setup as a scrollarea. I want to be able to drag it down from the top, and push it back. So far, everything I've tried only lets me pull it down and it automatically Snaps back.

I haven't yet wrapped my head around how this thing is setup.

test link

xml link

The menu tab is image 258x51, the tab extension is image 258x4 (stretched to any length).

tab

extension

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<krpano onstart="loadscene(pano1,null,MERGE);">
	
	<!-- adjust the examples backbutton position (if available) -->
	<layer name="backbutton" y="106" />
	

	<progress showload="none" showwait="none" />

	<layer name="menu_container" type="container" keep="true" align="top" width="258" height="100%" zorder="20">
		<layer name="menuscrollarea" url="plugins/scrollarea.swf" alturl="plugins/scrollarea.js" align="top" width="258" height="400" direction="v" onloaded="setcenter(0,800);">
			<layer name="menu_extender" url="images/tab_extension.png" keep="true" align="top" scale="1" width="258" height="804" x="0" y="-820" visible="true" >
				<layer name="menu_tab" url="images/tab.png" keep="true" align="bottom" width="258" height="51" x="0" y="-51" visible="true" />
			</layer>
		</layer>	
	</layer>
	
	


	<scene name="pano1"><preview url="pano1.jpg" /><image><cubestrip url="pano1.jpg" /></image></scene>


</krpano>