1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 08:38:10 +00:00
Commit Graph

41 Commits

Author SHA1 Message Date
Alain Pitiot
987ef20629
Merge pull request #194 from thewhodidthis/bf#193--gui
core/GUI: make sure _setRequiredKeys exists before accessing its size
2020-10-09 10:07:08 +02:00
Sotiri Bakagiannis
717aa3ca4f core/GUI: make sure _setRequiredKeys exists before accessing its size 2020-09-29 20:50:54 +01:00
Sotiri Bakagiannis
1b1dabffb8 core/PsychoJS: make an empty object literal the default expInfo value on start() 2020-09-18 16:00:00 +01:00
Sotiri Bakagiannis
a0de6a5921 core/GUI: give the OK button focus if enabled 2020-09-04 10:05:59 +01:00
Alain Pitiot
e15c05af31 updated copyright date 2020-08-20 13:42:36 +02:00
Alain Pitiot
2eb38f0705 _ 2020-08-20 12:02:37 +02:00
Alain Pitiot
6e8f3bf612 revised the attribute mechanisms; various bug fixes and performance improvements 2020-08-20 11:59:56 +02:00
Sotiri Bakagiannis
cd3163b444 core/Window: lose gl extension context before PIXI renderer 2020-08-17 10:43:11 +01:00
Alain Pitiot
fa39a7bfbc added Form and TextBox; added boundingBox attribute and contains method to VisualStim; various performance improvements to all visual stimuli 2020-08-05 09:32:53 +02:00
Alain Pitiot
640ae93a04
Merge pull request #105 from thewhodidthis/nf#104--mouse
core/Mouse: add isPressedIn method
2020-08-03 16:47:32 +02:00
Alain Pitiot
e3f8e7593c
Merge pull request #119 from thewhodidthis/bf#115--gui
core/GUI: swap placement of OK/Cancel dialog box buttons
2020-07-31 16:23:34 +02:00
Sotiri Bakagiannis
f4b9717467 core/GUI: swap placement of OK/Cancel dialog box buttons 2020-07-27 12:14:47 +01:00
Sotiri Bakagiannis
5b69621ffa core/MinimalStim: add release method 2020-07-24 17:11:40 +01:00
Sotiri Bakagiannis
43dedcb7f7 core/Mouse: clean up JSDoc 2020-07-17 16:46:36 +01:00
Sotiri Bakagiannis
2909dabf83 core/Mouse: clean up mostly JSDoc 2020-07-17 15:06:58 +01:00
Sotiri Bakagiannis
460ba1998d core/Mouse: clean up comments 2020-07-17 12:30:15 +01:00
Sotiri Bakagiannis
d023ed3b8c core/Mouse: tweak isPressedIn to cover all types of arguments
Bring in line with PsychoPy by accepting arguments as follows:
(a) mouse.isPressedIn({"shape": myStim, "buttons": 1})
(b) mouse.isPressedIn(myStim, {"buttons": 1})
(c) mouse.isPressedIn(myStim, 1)
2020-07-16 17:21:04 +01:00
Sotiri Bakagiannis
e37eb5270a core/Mouse: add isPressedIn method 2020-07-14 12:57:20 +01:00
Alain Pitiot
1fc76d1461 complete linting, saving of partial results, improved GUI, various bug fixes 2020-07-03 14:26:43 +02:00
Alain Pitiot
8276bd790a replace jquery escapeSelector by CSS.escape since the latter is standard and the former is only available in jquery 3.0 2020-05-24 14:23:00 +02:00
Alain Pitiot
f688b65cd0
Merge branch 'master' into master 2020-05-24 14:03:00 +02:00
Alain Pitiot
934484e054 cancel a recent change to slider which seems to be creating issues; take devicePixelRatio into account in Windows 2020-05-24 13:45:32 +02:00
Sijia Zhao
584d76a04f Dialogs now properly destroyed and removed from DOM when closed
Ensures dialogs are immediately removed from DOM when closed.
Previously, dialogs were destroyed but not removed causing possibility of duplicate element IDs, so jQuery unitentionally selects and recreates old dialogs, thus  GUI._updateOkButtonStatus updates the wrong button.
2020-05-19 19:31:29 +01:00
Sijia Zhao
88827706ea ServerManager.downloadResources, ._downloadRegisteredResources: only process and download new resources, ignore existing resources
Old behaviour of ._downloadRegisteredResources attempts to download all registered resources, regardless of whether they have been previously downloaded. howler.js appears to ignore requests to re-download, however PreloadJS will redownload, which can cause critical errors if a resource is being used while being unnecessarily redownloaded
2020-05-19 19:22:19 +01:00
Sijia Zhao
0f9eeb636e GUI._onKeyChange now properly handles dropdown boxes
Now use a Map to keep track of individual elements to prevent duplication.
Previously would increment continuously just by switching dropdown options. So users could bypass the requirement to complete starred(*) fields by toggling a dropdown a few times, or by focussing and unfocussing input elements, causing nbSetRequiredKeys++ to increment without limit.
2020-05-19 19:07:48 +01:00
Sijia Zhao
dd23484cf5 Remove need to unfocus/deselect input elements in DlgFromDict before being able to click the "Ok" button
GlobalEventHandlers.onchange only fires when focus is lost. However .oninput fires whenever contents are modified. Original requires "double click" behaviour: first click to deselect the input element, second click to actually click the "Ok" button. Old code results in "Ok" buttons remaining visually disabled thus confusing users even when input elements have been completed
2020-05-19 18:58:52 +01:00
Sijia Zhao
e907c0c897 Prevent special characters in DlgFromDict dictionary causing DOM element selection problems
Use
$.escapeSelector()

Requires jQuery 3.0+
2020-05-19 18:47:16 +01:00
Sijia Zhao
4b064bccc0 Fix DlgFromDict form labels not focussing/selecting corresponding input element
Use
htmlCode += '<label for="' + keyId + '">' + key + '</label>';
2020-05-19 18:42:59 +01:00
Sijia Zhao
d4b52796c9 Fix blurry Pixi canvas
Add
resolution: window.devicePixelRatio,
2020-05-19 18:40:56 +01:00
Alain Pitiot
1cf40c4d8a _ 2020-05-12 18:31:11 +02:00
Alain Pitiot
4942e0156e 2020.1 branch 2020-02-14 08:18:25 +01:00
Alain Pitiot
039a8671c7 fixed issues: fullscreen mode, size of triangular marker in sliders; new features: window waitblanking 2019-07-31 10:37:51 +02:00
Alain Pitiot
d20a4cb0a5 version 3.1.4 2019-07-08 09:05:15 +02:00
Alain Pitiot
03f06ac64a version 3.0.8 2019-04-19 09:50:14 +02:00
Alain Pitiot
becf79b5d6 version 3.0.6: various bug fixes and enhancements 2019-03-12 09:28:31 +01:00
Alain Pitiot
900f438516 version 3.0.0b13 2018-12-28 13:13:50 +01:00
Alain Pitiot
10e2bc0650 added util module 2018-12-10 07:35:21 +01:00
Alain Pitiot
14390697f1 fully documented the visual module; various bug fixes 2018-10-24 15:05:28 +02:00
Alain Pitiot
cc9a4202e9 various cosmetic changes 2018-10-08 17:07:15 +02:00
Alain Pitiot
965814fa90 updated license notices and readme 2018-10-08 16:56:51 +02:00
Alain Pitiot
86488521d6 PsychoJs version 3.0.0b11 2018-10-08 16:44:23 +02:00