Jump to content

scrollpane scrolling glitch/bug


Fist

Recommended Posts

7 hours ago, Skully said:

Was unable to reproduce this, what are you doing that's causing it to move back up top or bottom? Works fine for me.

Nothing really, i just have scroll pane with images in it and if i move it little bit from bottom to top it resets instantly to the top and it's so frustrating. Here's scrolling code what i use.

addEventHandler("onClientMouseWheel",GUIEditor.scrollpane[1],function(up_down)
	if (up_down == 1) then
		guiScrollPaneSetVerticalScrollPosition(GUIEditor.scrollpane[1],guiScrollPaneGetVerticalScrollPosition(GUIEditor.scrollpane[1])-4)
	elseif (up_down == -1) then
		guiScrollPaneSetVerticalScrollPosition(GUIEditor.scrollpane[1],guiScrollPaneGetVerticalScrollPosition(GUIEditor.scrollpane[1])+4)
	end
end);

Could it be this fault? But i read somewhere that it was MTA's fault in bug reports at wiki.

Edited by Fist
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...