safatshahin / moodle-mod_debate

Debate is a moodle activity which allows students to debate in a given topic inside moodle.
Other
2 stars 1 forks source link

As I type, the "Possible matching responses" section causes "jumping" of the page content footer #4

Closed mudrd8mz closed 3 years ago

mudrd8mz commented 3 years ago

I don't fully understand what that feature is for. But I noticed that when I pause typing, the AJAX loaded content is rendered but it causes not so nice page "jumps" or flickering (as the section disappears and appears again).

mudrd8mz commented 3 years ago

Trying to show the section that gets collapses and expanded on re-rendering the section.

image

safatshahin commented 3 years ago

Hi @mudrd8mz, this feature actually renders the possible matching responses according to the words you typed. It checks after you stop typing 700ms, and gets you all the possible matching responses in the same debate to help you decide if your response is matching with someone else's or you are typing the same thing. It's happening realtime from the js and it sends the ajax req to get the possible matching data and renders through a mustache.

For example, in this screenshot, there are two previous responses, so the response I just typed, has got some matching words, so it's listing those to help the user if the response is still appropriate or not. This feature is helpful when you have a lot of responses already in the same debate. image

safatshahin commented 3 years ago

Closing this ticket as there is no further issue found.