Subversion Repositories Kolibri OS

Rev

Rev 5781 | Rev 5803 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5781 Rev 5782
Line 126... Line 126...
126
				{
126
				{
127
					PageLinks.Hover(mouse.x, WB1.list.first*WB1.list.line_h + mouse.y, link_color_inactive, link_color_active, bg_color);
127
					PageLinks.Hover(mouse.x, WB1.list.first*WB1.list.line_h + mouse.y, link_color_inactive, link_color_active, bg_color);
128
					if (bufsize) && (mouse.pkm) && (mouse.up) { CreateThread(#menu_rmb,#stak+4092); break; }
128
					if (bufsize) && (mouse.pkm) && (mouse.up) { CreateThread(#menu_rmb,#stak+4092); break; }
129
					if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage();
129
					if (WB1.list.MouseScroll(mouse.vert)) WB1.DrawPage();
130
				}
130
				}
131
				//Drag scroller
-
 
132
				scroll_wv.all_redraw = 0;
131
				scrollbar_v_mouse (#scroll_wv);
133
				if (!mouse.lkm) scroll_used=0;
132
				if (WB1.list.first != scroll_wv.position)
134
				if (mouse.x>=scroll_wv.start_x) && (mouse.x<=scroll_wv.start_x+scroll_wv.size_x) 
-
 
135
				&& (mouse.y>=scroll_wv.start_y+scroll_wv.btn_height) && (-scroll_wv.btn_height+scroll_wv.start_y+scroll_wv.size_y>mouse.y)
-
 
136
				&& (WB1.list.count>WB1.list.visible) && (mouse.lkm) scroll_used=1;
-
 
137
				if (scroll_used)
-
 
138
				{
133
				{
139
					mouse.y = mouse.y + 5;
134
					WB1.list.first = scroll_wv.position;
140
					half_scroll_size = WB1.list.h - 16 * WB1.list.visible / WB1.list.count - 3 /2;
-
 
141
					if (half_scroll_size+WB1.list.y>mouse.y) || (mouse.y<0) || (mouse.y>4000) mouse.y=half_scroll_size+WB1.list.y;
-
 
142
					btn=WB1.list.first;
135
					WB1.DrawPage();
143
					WB1.list.first = mouse.y -half_scroll_size -WB1.list.y * WB1.list.count / WB1.list.h;
-
 
144
					if (WB1.list.visible+WB1.list.first>WB1.list.count) WB1.list.first=WB1.list.count-WB1.list.visible;
-
 
145
					if (btn!=WB1.list.first) WB1.DrawPage();
136
					break;
146
				}
137
				}
147
				break;
138
				break;
Line 148... Line 139...
148
 
139
 
149
			case evButton:
140
			case evButton: