My pockets doors slide back and forth. Even with closing them although closed is better. I thought maybe they had a grip if pushed back far enough but no joy there.
I guess I need to put straps on them like on the metal doors or some kind of door stop for each door.
I added a stronger magnet to the left door and used a large felt pad on the right door. Winnebago has magnets at the bottom of the doors and a magnetic strip to keep the doors closed but they are not strong enough.
But the pocket doors are much better than the metal doors they replaced.
My doors do the same thing. While on a trip I had to improvise by inserting a clear tube under the door to keep it from sliding. Your solution seems great. Could you post some pics?