^This.
Instead of trying to keep the aircraft "stationary" over the boat deck by using ActiveTrack, which will be problematic at best in this situation, how about trying the Follow mode? So long as you have good GPS on your smart device connected to the RC, you can set it up to follow you and it will then more or less "hover" over the moving deck when you let go of the sticks, but still be able to control and move it around.
Of course, as someone else mentioned, be sure and set RTH to the RC location too, just in case anything goes wrong.
This is worth testing...but not on a boat. I have a flatbed trailer, and once I find a long stretch of empty road, I could have someone drive at ~5 mph while I try flying off the trailer. Regardless of the outcome, it'll be good to be more knowledgeable about the Mavic's follow features.
If I do it first, I'll return and report. If someone else already knows, by all means - spill!