Open dinism opened 5 years ago
Hi Dinis. It all depends on which theme you are using. Boost, and Boost based themes, work the way you have discovered, where you have to hold the click. In the Clean theme, and Clean based themes, you can click and let go of the click, and the help window stays open until you close it.
I'm using Boost and in my moodle only this plugin i have to hold click. This is why i open this issue. All others i just click and that's it, windows stays open.
Okay. I will investigate some more on this issue tomorrow.
Hmm...the only other activity I have found, so far, that uses a heading_with_help is the Lesson activity. It does stay open when clicked and using Boost. When I compare the code for both and then Inspect Element when viewing the pages for each, I cannot really find any difference between the two. However, when you load the MooTyper view.php file, there is a WHOLE bunch of stuff going on that just does not happen in other plugins. I have had to try and RE-LEARN it all for MooTyper due to trying to create a Korean keyboard layout. Anyway, when the page is ready for you to start typing the exercise, it has started a continuous and automatic rescan of various elements on the page, mainly checking to see if you have created a mouseup or keyup event or if the display needs to scroll to the next line. My guess is that since Boost renders that page differently than the way Clean does, it resets that popover message box. It is also being filtered by other parts of Moodle. e.g. rubric, grading, etc. I think that the scanning is making it seem like you have clicked somewhere else, so it turns the popover box off. I imagine we will just have to live with the way it works, or remove it and not use it, like most of the other plugins.
I was doing some investigating today and I think I will eventually drop this overview_help string and the code to display it. No other plugins use it, except for Lesson, and even lesson will not display the little help icon in current Moodle 4.1, and I do not see any other way to access that help string.
To read the message i need to keep mouse clicked on ? . Is it ok? In others places to read the message i only need click once on ? icon.