One Page megamenu style

One Page megamenu style

A website start page has a OnePage solution with a scroll effect.
Example:
Link = #contact, the page will scroll to the div # contact section
For the mobile menu, however, the #contact link does not close the mobile menu. Nothing happens. What should I do to make Ona page scroll work on my mobile?