Both commands work with values greater than 1, despite that the BIKI states otherwise.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
- Add this code into initPlayerLocal.sqf:
#include "\a3\ui_f\hpp\defineResincl.inc" fnc_handleEvent = { params ["_control"]; // _control ctrlSetScrollValues [1, -1]; hint (str (ctrlScrollValues _control)); }; [ missionNamespace, "OnDisplayRegistered", { params ["_display"]; if ((ctrlIDD _display) != IDD_FUTURAGEAR) exitWith { }; (_display displayCtrl IDC_FG_UNIFORM_CONTAINER) ctrlAddEventHandler ["LBDblClick", { call fnc_handleEvent; }]; (_display displayCtrl IDC_FG_VEST_CONTAINER) ctrlAddEventHandler ["LBDblClick", { call fnc_handleEvent; }]; (_display displayCtrl IDC_FG_BACKPACK_CONTAINER) ctrlAddEventHandler ["LBDblClick", { call fnc_handleEvent; }]; } ] call BIS_fnc_addScriptedEventHandler;
- Open inventory and select a container whose item list has scrollbar.
- Scroll the list down and double click on any item.
- As you can see, ctrlScrollValues returns the Y value is greater than 1:
- Uncomment commented line.
- Open inventory and select a container whose item list has scrollbar.
- Double click on any item.
- As you can see, ctrlSetScrollValues doesn't scroll the list completely down.